From 4812e0939f635d02a0d3361e78d02db83949d05b Mon Sep 17 00:00:00 2001 From: Slipstream Date: Mon, 9 Jun 2025 22:42:01 -0600 Subject: [PATCH] Create mirror.yml --- .github/workflows/mirror.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..4ab88de --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,25 @@ +name: Mirror to Gitea + +on: + push: + branches: + - master # or change to your default branch + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Configure Git + run: | + git config --global user.name "github-actions" + git config --global user.email "actions@github.com" + + - name: Push to mirror + env: + MIRROR_PAT: ${{ secrets.MIRROR_PAT }} + run: | + git remote add mirror https://slipstream:${MIRROR_PAT}@git.slipstreamm.dev/slipstream/disagreement.git + git push --mirror mirror