1
0
Fork 1
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:
mr. M 2024-12-22 12:06:22 +01:00
parent 7f9fd7ef06
commit fce8d134a3
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
7 changed files with 28 additions and 29 deletions

View 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