mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-19 22:10:50 +00:00
Update remove-failed-jobs.sh
Signed-off-by: Cristian Cezar Moisés <ethicalhacker@riseup.net>
This commit is contained in:
committed by
GitHub
parent
d38274acae
commit
2217959242
@@ -7,7 +7,12 @@ gh_bulk_delete_workflow_runs() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
runs=$(gh api repos/$repo/actions/runs --paginate | jq -r '.workflow_runs[] | select(.conclusion == "cancelled" or .conclusion == "failure" or .conclusion == "timed_out") | .id')
|
||||
runs=$(gh api repos/$repo/actions/runs --paginate |
|
||||
jq -r '.workflow_runs[] |
|
||||
select(.conclusion == "cancelled" or
|
||||
.conclusion == "failure" or
|
||||
.conclusion == "timed_out") |
|
||||
.id')
|
||||
|
||||
while IFS= read -r run; do
|
||||
echo "Deleting run https://github.com/$repo/actions/runs/$run"
|
||||
@@ -17,4 +22,4 @@ gh_bulk_delete_workflow_runs() {
|
||||
echo "All workflow runs for $repo have been deleted."
|
||||
}
|
||||
|
||||
gh_bulk_delete_workflow_runs $1
|
||||
gh_bulk_delete_workflow_runs "$1"
|
||||
|
||||
Reference in New Issue
Block a user