.github: retry-transient-failed: clean up old jobs

wipe the old runs of this job, in order to prevent our job list
being spammed by the that cron job.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-06-15 11:32:25 +02:00
commit 3415589c67

View file

@ -54,6 +54,13 @@ fi
echo "Repo: $REPO (from remote '$UPSTREAM_REMOTE')"
echo ""
# clean prior workflow runs to reduce spamming via cronjob
gh run list -w "retry-transient-ci.yml" -s completed --json databaseId --jq '.[].databaseId' \
| while read -r run_id; do
echo "---> job id: $run_id"
gh run delete "$run_id"
done
########################################################################
# 2. Gather all open PRs
########################################################################