Created
July 28, 2022 06:07
-
-
Save ronek22/29940b4db1821509ec730e46b60b97e5 to your computer and use it in GitHub Desktop.
Revisions
-
ronek22 created this gist
Jul 28, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ ### Requirements - GitHub CLI This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/bin/bash ORG="gigb-official" REPO="django-gigb" WORKFLOW="lint.yml" gh config set pager cat WORKFLOW_RUNS=$(gh api -H "Accept: application/vnd.github.v3+json" "/repos/$ORG/$REPO/actions/workflows/$WORKFLOW/runs?per_page=100" | jq '.workflow_runs[] | .id') WORKFLOW_RUNS=($WORKFLOW_RUNS) for s in "${WORKFLOW_RUNS[@]}"; do gh api --method DELETE -H "Accept: application/vnd.github.v3+json" /repos/$ORG/$REPO/actions/runs/$s done gh config set pager less