From 62fac483f2226ea2d57a07483d5ebbe979d3fcf5 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Thu, 24 Jul 2025 15:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(workflow):=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=98=BF=E9=87=8C=E4=BA=91=E5=BC=BA=E5=88=B6=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE=20(#1991?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-to-aliyun.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync-to-aliyun.yml diff --git a/.github/workflows/sync-to-aliyun.yml b/.github/workflows/sync-to-aliyun.yml new file mode 100644 index 00000000..b66a8923 --- /dev/null +++ b/.github/workflows/sync-to-aliyun.yml @@ -0,0 +1,26 @@ +name: Force Sync to Aliyun +on: + push: + branches: ["main"] +jobs: + sync: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config --global http.postBuffer 524288000 + git config --global core.compression 0 + + - name: Add aliyun remote + run: | + git remote add aliyun https://${{secrets.ALIYUN_ACCOUNT}}:${{secrets.ALIYUN_PASSWORD}}@codeup.aliyun.com/67a361cf556e6cdab537117a/zhenxun-org/zhenxun_bot.git + git fetch aliyun main --force # 强制更新本地引用 + + - name: Force push + run: git push --progress --force aliyun HEAD:main