Skip to content

Instantly share code, notes, and snippets.

@bhicks
bhicks / delete_action_runs.sh
Created April 11, 2024 15:55
Deletes historical github action runs
OWNER=TheRealReal
REPO=api
WORKFLOW=launchdarkly.yml
gh api -X GET /repos/$OWNER/$REPO/actions/workflows/$WORKFLOW/runs --paginate -q '.workflow_runs[] | .id' | \
xargs -t -I{} gh api -X DELETE /repos/$OWNER/$REPO/actions/runs/{} --silent

Keybase proof

I hereby claim:

  • I am bhicks on github.
  • I am bhicks (https://keybase.io/bhicks) on keybase.
  • I have a public key whose fingerprint is 3A6B 0C4C 9F0F A65F 6733 FA35 CDC8 A069 0F1F 4A20

To claim this, I am signing this object: