Skip to content

Commit 8437daf

Browse files
craymichaelfacebook-github-bot
authored andcommitted
Fix for automatic GitHub workflow reruns (#1419)
Summary: Pull Request resolved: #1419 Slight bug in the retry GitHub workflow causes failing workflows to rerun indefinitely. This _should_ fix it Reviewed By: jjuncho Differential Revision: D65008676 fbshipit-source-id: 196b50cd902d0656018ff513953c05d3115f10f6
1 parent cbe45aa commit 8437daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/retry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
echo "event: ${{ github.event.workflow_run.conclusion }}"
1919
echo "event: ${{ github.event.workflow_run.event }}"
2020
- name: Rerun Failed Workflows
21-
if: github.event.workflow_run.conclusion == 'failure' && github.event.run_attempt <= 3
21+
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt <= 3
2222
env:
2323
GH_TOKEN: ${{ github.token }}
2424
RUN_ID: ${{ github.event.workflow_run.id }}

0 commit comments

Comments
 (0)