ilangai commited on
Commit
5001ba2
·
1 Parent(s): 9610bcd

ci: split Gitee+GitCode into parallel jobs, continue-on-error

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-mirrors.yml +12 -6
.github/workflows/sync-mirrors.yml CHANGED
@@ -7,22 +7,28 @@ on:
7
  tags: ['v*']
8
 
9
  jobs:
10
- sync:
11
  runs-on: ubuntu-latest
12
  steps:
13
- - name: Checkout
14
- uses: actions/checkout@v4
15
  with:
16
  fetch-depth: 0
17
-
18
  - name: Push to Gitee
 
19
  run: |
20
- git remote add gitee https://${{ secrets.GITEE_USER }}:${{ secrets.GITEE_TOKEN }}@gitee.com/palmmedia/trae.git || true
21
  git push gitee main --force
22
  git push gitee --tags --force
23
 
 
 
 
 
 
 
24
  - name: Push to GitCode
 
25
  run: |
26
- git remote add gitcode https://${{ secrets.GITCODE_USER }}:${{ secrets.GITCODE_TOKEN }}@gitcode.com/palmmedia/trae.git || true
27
  git push gitcode main --force
28
  git push gitcode --tags --force
 
7
  tags: ['v*']
8
 
9
  jobs:
10
+ gitee:
11
  runs-on: ubuntu-latest
12
  steps:
13
+ - uses: actions/checkout@v4
 
14
  with:
15
  fetch-depth: 0
 
16
  - name: Push to Gitee
17
+ continue-on-error: true
18
  run: |
19
+ git remote add gitee https://${{ secrets.GITEE_USER }}:${{ secrets.GITEE_TOKEN }}@gitee.com/palmmedia/trae.git
20
  git push gitee main --force
21
  git push gitee --tags --force
22
 
23
+ gitcode:
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0
29
  - name: Push to GitCode
30
+ continue-on-error: true
31
  run: |
32
+ git remote add gitcode https://${{ secrets.GITCODE_USER }}:${{ secrets.GITCODE_TOKEN }}@gitcode.com/palmmedia/trae.git
33
  git push gitcode main --force
34
  git push gitcode --tags --force