diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..e164c54 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,22 @@ +name: Mirror to GitLab + +on: + push: + branches: + - main + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Mirror to GitLab + env: + GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} + run: | + git remote add gitlab https://oauth2:${GITLAB_TOKEN}@gitlab.com/mrhavens/fieldprint.git + git push --mirror gitlab