Trigger workflow with inputs github-actions
Dispatch a workflow_dispatch run passing typed inputs; note: needs workflow_dispatch trigger
gh workflow run deploy.yml -f env=prod -f version=1.4.2 --ref main
more github-actions
all 7 commands →
Watch latest run live
gh run watch $(gh run list -w deploy.yml -L1 --json databaseId -q '.[0].databaseId')
Show only failed logs
gh run view <id> --log-failed | less -R
Run a job locally with act
act -j build --secret-file .secrets -P ubuntu-latest=catthehacker/ubuntu:act-22.04
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>