Skip to content

Commit d03b512

Browse files
committed
added retries to mirror workflow
1 parent 99a67e2 commit d03b512

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@ name: Mirror and run GitLab CI
22

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

69
jobs:
710
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)
816
runs-on: ubuntu-latest
9-
env:
10-
ACTIONS_STEP_DEBUG: "true"
1117
steps:
1218
- uses: actions/checkout@v4
1319
with:
1420
fetch-depth: 0
1521

1622
- name: Mirror + trigger CI
1723
uses: SvanBoxel/gitlab-mirror-and-ci-action@0.6
18-
timeout-minutes: 5
24+
timeout-minutes: 15
1925
with:
2026
args: "https://gitlab.desy.de/dcache/dcache"
2127
env:
@@ -27,6 +33,3 @@ jobs:
2733
GITLAB_PROJECT_ID: "21"
2834
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2935
POLL_TIMEOUT: 60
30-
GIT_TRACE: "1"
31-
GIT_CURL_VERBOSE: "1"
32-
GIT_TRANSFER_TRACE: "1"

0 commit comments

Comments
 (0)