github-actions commands

7 commands, each with a one-line explanation. Click a command to copy it, or its title for details.

Commands 7 shown

  • gh workflow run deploy.yml -f env=prod -f version=1.4.2 --ref main

    Dispatch a workflow_dispatch run passing typed inputs; note: needs workflow_dispatch trigger

    ci · gitops

  • 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

    ci · monitoring

  • gh run view <id> --log-failed | less -R

    Print logs of failed steps only, skipping noise from passing jobs

    debug · troubleshooting

  • act -j build --secret-file .secrets -P ubuntu-latest=catthehacker/ubuntu:act-22.04

    Run an Actions job in Docker locally before pushing; note: pin a real runner image

    ci · debug

  • gh run rerun <id> --failed

    Retry just the failed jobs of a run, reusing prior successful results

    ci · troubleshooting

  • 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

    performance · disk

  • permissions: id-token: write contents: read

    Job-level perms enabling OIDC token to assume a cloud role without static keys

    security · cloud