Commit fd295b3 1 parent 0b2328f commit fd295b3 Copy full SHA for fd295b3
File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -262,3 +262,16 @@ jobs:
262
262
- uses : ./.github/actions/build_conda
263
263
with :
264
264
label : main
265
+ rerun :
266
+ name : Activate rerun workflow
267
+ if : fromJSON(github.run_attempt) < 2
268
+ runs-on : ubuntu-latest
269
+ steps :
270
+ - env :
271
+ GH_REPO : ${{ github.repository }}
272
+ GH_TOKEN : ${{ github.token }}
273
+ GH_DEBUG : api
274
+ run : |
275
+ gh workflow run retry_build.yml |
276
+ --ref ${{ github.ref_name }} |
277
+ -F run_id=${{ github.run_id }}
Original file line number Diff line number Diff line change
1
+ name : Retry Build
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ run_id :
6
+ required : true
7
+ jobs :
8
+ rerun-on-failure :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : rerun ${{ inputs.run_id }}
12
+ env :
13
+ GH_REPO : ${{ github.repository }}
14
+ GH_TOKEN : ${{ github.token }}
15
+ GH_DEBUG : api
16
+ run : |
17
+ gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
18
+ gh run rerun ${{ inputs.run_id }} --failed
You can’t perform that action at this time.
0 commit comments