From 3415589c67bbc5957e361f0bcb9c684cc54ea4ef Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 15 Jun 2026 11:32:25 +0200 Subject: [PATCH] .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 --- .github/scripts/gh-retry-transient-failed | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/scripts/gh-retry-transient-failed b/.github/scripts/gh-retry-transient-failed index 5127f72927..c69e4cbeb2 100755 --- a/.github/scripts/gh-retry-transient-failed +++ b/.github/scripts/gh-retry-transient-failed @@ -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 ########################################################################