Created
July 24, 2024 06:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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