Skip to content

Commit 0d37303

Browse files
gtwang01ketor
authored andcommitted
Introduce retry-build workflow (facebookresearch#3718)
Summary: Pull Request resolved: facebookresearch#3718 This workflow needs to be pushed first before it can be called from the build workflow. Reviewed By: ramilbakhshyiev Differential Revision: D60697701 fbshipit-source-id: 40cb6b7006dae8293e966cc2cbb0ebda5d606045
1 parent 9f10bc3 commit 0d37303

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/retry_build.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Retry Build
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
run_id:
6+
required: true
7+
jobs:
8+
rerun-on-failure:
9+
permissions: write-all
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: rerun ${{ inputs.run_id }}
13+
env:
14+
GH_REPO: ${{ github.repository }}
15+
GH_TOKEN: ${{ github.token }}
16+
GH_DEBUG: api
17+
run: |
18+
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
19+
gh run rerun ${{ inputs.run_id }} --failed

0 commit comments

Comments
 (0)