From 0905d48bdffc9f355c9f6e0106dc770c2bda2062 Mon Sep 17 00:00:00 2001 From: Antigravity Agent Date: Mon, 25 May 2026 05:15:11 +0000 Subject: [PATCH] ci: automate GitHub to GitLab mirror --- .github/workflows/mirror.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/mirror.yml 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