Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-retry failed CI builds once #3718

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Introduce retry-build workflow (#3718)
Summary:

This workflow needs to be pushed first before it can be called from the build workflow.

Differential Revision: D60697701
gtwang01 authored and facebook-github-bot committed Aug 8, 2024

Verified

This commit was signed with the committer’s verified signature.
andrewlock Andrew Lock
commit 6341fcab213851c86df8a8155670c174275b1fc5
19 changes: 19 additions & 0 deletions .github/workflows/retry_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Retry Build
on:
workflow_dispatch:
inputs:
run_id:
required: true
jobs:
rerun-on-failure:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: rerun ${{ inputs.run_id }}
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: |
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
gh run rerun ${{ inputs.run_id }} --failed