Skip to content

Commit

Permalink
Introduce retry-build workflow (facebookresearch#3718)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gtwang01 authored and facebook-github-bot committed Aug 8, 2024
1 parent acc3a97 commit c669357
Showing 1 changed file with 19 additions and 0 deletions.
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

0 comments on commit c669357

Please sign in to comment.