Skip to content

Commit 03412bb

Browse files
committed
fix(workflow): 更新CI/CD
1 parent 7f6be04 commit 03412bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/sync-to-mirrors.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
git remote add gitee https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/worryzyy/element-ui-x.git || true
3333
git remote set-url gitee https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/worryzyy/element-ui-x.git
3434
35+
- name: Update remote refs
36+
run: |
37+
echo "Fetching remote refs..."
38+
git fetch gitcode || true
39+
git fetch gitee || true
40+
3541
- name: Push to GitCode
3642
run: |
3743
echo "Pushing to GitCode..."
@@ -47,5 +53,5 @@ jobs:
4753
- name: Sync status
4854
run: |
4955
echo "✅ 同步完成"
50-
echo "分支: ${{ github.ref_name }}"
56+
echo "分支: ${{ github.ref_name }}"
5157
echo "提交: ${{ github.sha }}"

0 commit comments

Comments
 (0)