Skip to content

Instantly share code, notes, and snippets.

@caugner
Created February 6, 2024 12:59
Show Gist options
  • Save caugner/44126663b922be7028b029a767873a97 to your computer and use it in GitHub Desktop.
Save caugner/44126663b922be7028b029a767873a97 to your computer and use it in GitHub Desktop.
Rerun failed workflow runs for current commit
#!/usr/bin/env sh
gh run list -c `git rev-parse HEAD` --status=failure --json 'databaseId' | jq -r '.[] | .databaseId' | xargs -n1 gh run rerun --failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment