Update @zen-browser/surfer dependency to version 1.8.5 and enhance job removal script to handle cancelled and timed out runs

This commit is contained in:
mr. M
2024-12-31 19:22:51 +01:00
parent d2d8d3d8c2
commit e7ee77ad62
3 changed files with 7 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ gh_bulk_delete_workflow_runs() {
return 1
fi
runs=$(gh api repos/$repo/actions/runs --paginate | jq -r '.workflow_runs[] | select(.conclusion == "failure") | .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"