List and delete caches

Find the biggest Actions caches and delete old ones to free quota

gh cache list --sort size_in_bytes --order desc; gh cache delete <id>

tool
github-actions7 commands
tags
github-actionsperformancedisk

More github-actions commands

  • permissions: id-token: write contents: read

    Job permissions that let it get an OIDC token and assume a cloud role without static keys

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

    Start a workflow_dispatch run and pass inputs. Note: the workflow needs a workflow_dispatch trigger

  • gh run watch $(gh run list -w deploy.yml -L1 --json databaseId -q '.[0].databaseId')

    Follow the progress of the newest run live. Add --exit-status to get a non-zero exit code when the run fails

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

    Print logs of failed steps only, without the noise from passing jobs

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

    Run an Actions job locally in Docker before you push. Note: use a full runner image

all 7 github-actions commands