Run a job locally with act github-actions
Run an Actions job in Docker locally before pushing; note: pin a real runner image
act -j build --secret-file .secrets -P ubuntu-latest=catthehacker/ubuntu:act-22.04
more github-actions
all 7 commands →
Rerun only failed jobs
gh run rerun <id> --failed
List and prune caches
gh cache list --sort size_in_bytes --order desc; gh cache delete <id>
OIDC keyless cloud auth
permissions:
id-token: write
contents: read
Trigger workflow with inputs
gh workflow run deploy.yml -f env=prod -f version=1.4.2 --ref main
Watch latest run live
gh run watch $(gh run list -w deploy.yml -L1 --json databaseId -q '.[0].databaseId')