mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-06 16:57:04 +00:00
Refactor LTO configuration across platforms and update version numbers in surfer.json
This commit is contained in:
20
scripts/remove-failed-jobs.sh
Normal file
20
scripts/remove-failed-jobs.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
gh_bulk_delete_workflow_runs() {
|
||||
repo=$1
|
||||
|
||||
# Ensure the repo argument is provided
|
||||
if [[ -z "$repo" ]]; then
|
||||
echo "Usage: gh_bulk_delete_workflow_runs <owner/repo>"
|
||||
return 1
|
||||
fi
|
||||
|
||||
runs=$(gh api repos/$repo/actions/runs --paginate | jq -r '.workflow_runs[] | select(.conclusion == "failure") | .id')
|
||||
|
||||
while IFS= read -r run; do
|
||||
echo "Deleting run https://github.com/$repo/actions/runs/$run"
|
||||
gh api -X DELETE repos/$repo/actions/runs/$run --silent
|
||||
done <<< "$runs"
|
||||
|
||||
echo "All workflow runs for $repo have been deleted."
|
||||
}
|
||||
|
||||
gh_bulk_delete_workflow_runs $1
|
||||
Reference in New Issue
Block a user