Files
Wand-Enhancer-k1tbyte/.github/workflows/mirror.yml
T
2026-07-22 00:03:38 +03:00

30 lines
675 B
YAML

name: Mirror to GitLab
on:
push:
branches: [ "master", "main" ]
tags:
- '*'
workflow_dispatch:
jobs:
mirror:
if: github.repository == 'k1tbyte/Wand-Enhancer'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Push to GitLab
env:
GITLAB_USERNAME: kitbyte
GITLAB_REPO: Wand-Enhancer
run: |
git remote add gitlab https://oauth2:${{ secrets.GITLAB_TOKEN }}@gitlab.com/$GITLAB_USERNAME/$GITLAB_REPO.git
git push gitlab --all --force
git push gitlab --tags --force