From d13d2d42683b2837b8248b7069731d7aa10bc65b Mon Sep 17 00:00:00 2001 From: Pesy Wu Date: Thu, 18 Jan 2024 12:24:24 +0800 Subject: [PATCH] Create MirrorSync.yml --- .github/workflows/MirrorSync.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/MirrorSync.yml diff --git a/.github/workflows/MirrorSync.yml b/.github/workflows/MirrorSync.yml new file mode 100644 index 0000000..cbfc75d --- /dev/null +++ b/.github/workflows/MirrorSync.yml @@ -0,0 +1,21 @@ +name: 'SyncMirror' + +on: + workflow_dispatch: + push: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: 'Checkout codes' + uses: actions/checkout@v2 + + - name: 'Sync' + id: commit + run: | + git fetch --unshallow + git checkout master + git remote add gitea https://${{ secrets.GITEA_USERNAME }}:${{ secrets.GITEA_PASSWORD }}@git.bili33.top/GamerNoTitle/wyycg-AutoCheckin.git + git push gitea master +