mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 23:00:01 +02:00
Refactor LTO configuration across platforms and update version numbers in surfer.json
This commit is contained in:
parent
7f9fd7ef06
commit
fce8d134a3
7 changed files with 28 additions and 29 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue