Update push2gitee.yml
This commit is contained in:
parent
d31e02c091
commit
8ce8764492
8
.github/workflows/push2gitee.yml
vendored
8
.github/workflows/push2gitee.yml
vendored
@ -2,8 +2,8 @@ name: Sync to Private Gitee
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *' # 每天 UTC 1 点(北京时间 9 点)
|
- cron: '0 1 * * *' # 每天凌晨 1 点 UTC(北京时间 9 点)
|
||||||
workflow_dispatch: # 手动触发也可
|
workflow_dispatch: # 支持手动触发
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
@ -18,9 +18,9 @@ jobs:
|
|||||||
git config --global user.name "GitHub Actions"
|
git config --global user.name "GitHub Actions"
|
||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
|
|
||||||
- name: Add Gitee private remote
|
- name: Add Gitee remote
|
||||||
run: |
|
run: |
|
||||||
git remote add gitee http://${{ secrets.GITEE_USERNAME }}:${{ secrets.GITEE_PASSWORD }}@49.235.152.15:3000/zhudongjer/carrot.git
|
git remote add gitee http://${{ secrets.GITEE_USERNAME }}:${{ secrets.GITEE_TOKEN }}@49.235.152.15:3000/zhudongjer/carrot.git
|
||||||
|
|
||||||
- name: Force push to Gitee
|
- name: Force push to Gitee
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user