Skip to content

Commit 5ee51b1

Browse files
committed
Update ci-main-reusable-caller.yml
1 parent c4823b0 commit 5ee51b1

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci-main-reusable-caller.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898

9999
ci-auto-rerun-failed-jobs:
100100
needs: [ci-debian-build, ci-alpine-build, ci-alpine-release]
101-
if: failure() && github.event.inputs.skip_rerun == 'false'
101+
if: failure() && (github.event.inputs.skip_rerun || 'false') == 'false'
102102
concurrency:
103103
group: ci-auto-rerun-failed-jobs
104104
cancel-in-progress: true
@@ -107,11 +107,15 @@ jobs:
107107
runs-on: ubuntu-latest
108108
env:
109109
GH_TOKEN: "${{ secrets.AUTO_RERUN || github.token }}"
110-
github_repo: ""
110+
github_repo: "" # To use ci-auto-rerun-failed-jobs.yml hosted in a remote repository else default to the current repository. Requires PAT token.
111111
steps:
112112
- uses: actions/checkout@v4
113-
- name: Trigger rerun workflow on job failures
114-
run: |
115-
inputs_retries="${{ github.event.inputs.retries }}"
116-
gh workflow run ci-auto-rerun-failed-jobs.yml --repo "${{ env.github_repo || github.repository }}" -f run_id=${{ github.run_id }} -f attempts=${{ github.run_attempt }} -f retries=${inputs_retries:-1} -f github_repo=${{ github.repository }} -f distinct_id=${{ github.event.inputs.distinct_id }}
117-
113+
- name: ci-auto-rerun-failed-jobs via ${{ env.github_repo || github.repository }}
114+
run: >
115+
gh workflow run ci-auto-rerun-failed-jobs.yml
116+
--repo "${{ env.github_repo || github.repository }}"
117+
-f github_repo=${{ github.repository }}
118+
-f run_id=${{ github.run_id }}
119+
-f attempts=${{ github.run_attempt }}
120+
-f retries=${{ github.event.inputs.retries || '1' }}
121+
-f distinct_id=${{ github.event.inputs.distinct_id }}

0 commit comments

Comments
 (0)