Skip to content

Commit 3dc3d48

Browse files
committed
added fresh vm
1 parent d03b512 commit 3dc3d48

1 file changed

Lines changed: 27 additions & 8 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@ name: Mirror and run GitLab CI
22

33
on:
44
push:
5-
workflow_run:
6-
workflows: ["Mirror and run GitLab CI"]
7-
types: [completed]
85

96
jobs:
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:
@@ -33,3 +28,27 @@ jobs:
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

0 commit comments

Comments
 (0)