mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
✨ feat(workflow): 新增阿里云强制同步工作流配置 (#1991)
This commit is contained in:
parent
61251ce137
commit
62fac483f2
26
.github/workflows/sync-to-aliyun.yml
vendored
Normal file
26
.github/workflows/sync-to-aliyun.yml
vendored
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user