Skip to content

Instantly share code, notes, and snippets.

@caugner
Last active February 6, 2024 12:58
Show Gist options
  • Save caugner/4f639261a1e6cc671ed600e5dc691334 to your computer and use it in GitHub Desktop.
Save caugner/4f639261a1e6cc671ed600e5dc691334 to your computer and use it in GitHub Desktop.
Rerun failed workflow
#!/usr/bin/env sh
gh run list --workflow 'auto-merge' --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