Rerun only failed jobs
Retry just the failed jobs of a run, reusing prior successful results
gh run rerun <id> --failed
- tool
- github-actions7 commands
More github-actions commands
-
gh cache list --sort size_in_bytes --order desc; gh cache delete <id>Find the biggest Actions caches and delete stale ones to free quota
-
permissions: id-token: write contents: readJob-level perms enabling OIDC token to assume a cloud role without static keys
-
gh workflow run deploy.yml -f env=prod -f version=1.4.2 --ref mainDispatch a workflow_dispatch run passing typed inputs; note: needs workflow_dispatch trigger
-
gh run watch $(gh run list -w deploy.yml -L1 --json databaseId -q '.[0].databaseId')Stream the newest run's progress live and exit with its status code
-
gh run view <id> --log-failed | less -RPrint logs of failed steps only, skipping noise from passing jobs