File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,24 +2,19 @@ name: Mirror and run GitLab CI
22
33on :
44 push :
5- workflow_run :
6- workflows : ["Mirror and run GitLab CI"]
7- types : [completed]
85
96jobs :
107 to_gitlab :
11- if : |
12- github.event_name == 'push' ||
13- (github.event_name == 'workflow_run' &&
14- github.event.workflow_run.conclusion == 'failure' &&
15- github.event.workflow_run.run_attempt < 3)
168 runs-on : ubuntu-latest
9+ outputs :
10+ success : ${{ steps.mirror.outcome == 'success' }}
1711 steps :
1812 - uses : actions/checkout@v4
1913 with :
2014 fetch-depth : 0
2115
2216 - name : Mirror + trigger CI
17+ id : mirror
2318 uses : SvanBoxel/gitlab-mirror-and-ci-action@0.6
2419 timeout-minutes : 15
2520 with :
3328 GITLAB_PROJECT_ID : " 21"
3429 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3530 POLL_TIMEOUT : 60
31+
32+ retry :
33+ needs : to_gitlab
34+ if : failure()
35+ runs-on : ubuntu-latest
36+ steps :
37+ - uses : actions/checkout@v4
38+ with :
39+ fetch-depth : 0
40+
41+ - name : Mirror + trigger CI (retry)
42+ uses : SvanBoxel/gitlab-mirror-and-ci-action@0.6
43+ timeout-minutes : 15
44+ with :
45+ args : " https://gitlab.desy.de/dcache/dcache"
46+ env :
47+ FOLLOW_TAGS : " true"
48+ FORCE_PUSH : " false"
49+ GITLAB_HOSTNAME : " gitlab.desy.de"
50+ GITLAB_USERNAME : " dcache"
51+ GITLAB_PASSWORD : ${{ secrets.GITLAB_PASSWORD }}
52+ GITLAB_PROJECT_ID : " 21"
53+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54+ POLL_TIMEOUT : 60
You can’t perform that action at this time.
0 commit comments