Skip to content

Commit 13371c7

Browse files
gtwang01facebook-github-bot
authored andcommitted
Auto-retry failed CI builds once (facebookresearch#3740)
Summary: Pull Request resolved: facebookresearch#3740 Reviewed By: ramilbakhshyiev Differential Revision: D60992604 fbshipit-source-id: 9edb046356bbcae950c131280ac1822f35bbfe7e
1 parent 01317af commit 13371c7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/nightly.yml

+13
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,16 @@ jobs:
133133
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
134134
with:
135135
label: nightly
136+
auto-retry:
137+
name: Auto retry on failure
138+
if: fromJSON(github.run_attempt) < 2
139+
runs-on: ubuntu-latest
140+
steps:
141+
- name: Start rerun workflow
142+
env:
143+
GH_REPO: ${{ github.repository }}
144+
GH_TOKEN: ${{ github.token }}
145+
GH_DEBUG: api
146+
run: |
147+
gh workflow run retry_build.yml \
148+
-F run_id=${{ github.run_id }}

0 commit comments

Comments
 (0)