From 08d8e229bbc97dfa0068187c506c187c6c71225c Mon Sep 17 00:00:00 2001 From: Zotify <115511604+zotify-dev@users.noreply.github.com> Date: Thu, 13 Oct 2022 09:18:08 +0000 Subject: [PATCH] Create pushmirror.yml --- .github/workflows/pushmirror.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pushmirror.yml diff --git a/.github/workflows/pushmirror.yml b/.github/workflows/pushmirror.yml new file mode 100644 index 0000000..661d243 --- /dev/null +++ b/.github/workflows/pushmirror.yml @@ -0,0 +1,27 @@ +name: Push mirror + +on: + pull_request: + types: [closed] + +jobs: + push: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: setup git + run: | + git config user.name "GitHub Actions Bot" + git config user.email "<>" + + - name: set upstream + run: | + git remote set-url origin https://x-access-token:${{ secrets.GITEA_TOKEN }}@zotify.xyz/zotify/zotify + git remote add old https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/zotify-dev/zotify + + - name: push repo + run: | + git fetch --unshallow old + git push