File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments