From aa11762faa0c0762c2b9d80fa6aa79920fa1cfb4 Mon Sep 17 00:00:00 2001 From: GamerNoTitle Date: Sun, 22 Sep 2024 18:40:09 +0800 Subject: [PATCH] Update --- .github/workflows/MirrorSync.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..741c29d --- /dev/null +++ b/.github/workflows/MirrorSync.yml @@ -0,0 +1,20 @@ +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 ${{ secrets.GITEA_URL }} + git push gitea master