Skip to content

Instantly share code, notes, and snippets.

@ajtrichards
Created July 24, 2024 06:16
Show Gist options
  • Save ajtrichards/1af6aae053b6018cf4f5e9f6ae31d69c to your computer and use it in GitHub Desktop.
Save ajtrichards/1af6aae053b6018cf4f5e9f6ae31d69c to your computer and use it in GitHub Desktop.
GitHub - Cleanup GitHub Actions Workflow's that are no longer in use or were used for testing
run_ids=$(gh run list --limit 500 --repo=name/name --workflow=name.yml --json databaseId | jq -r '.[].databaseId')
for run_id in $run_ids; do
gh run delete $run_id --repo name/name
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment