From ab4bf3b32f61f5f65b9d5e074b93975a3b83881d Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Tue, 14 Apr 2026 22:31:37 +0000 Subject: [PATCH] Add GitHub mirror workflow --- .gitea/workflows/mirror-to-github.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/mirror-to-github.yml diff --git a/.gitea/workflows/mirror-to-github.yml b/.gitea/workflows/mirror-to-github.yml new file mode 100644 index 00000000..c89dcd8a --- /dev/null +++ b/.gitea/workflows/mirror-to-github.yml @@ -0,0 +1,24 @@ +name: Mirror to GitHub + +on: + push: + branches: + - '**' + delete: + branches: + - '**' + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Push to GitHub + run: | + git remote add github https://x-access-token:${{ secrets.GH_MIRROR_TOKEN }}@github.com/${{ secrets.GH_MIRROR_REPO }} + git push github --all --force + git push github --tags --force \ No newline at end of file