fix(retry-failed-releases): Find releases with new format (#33959)

* fix(retry-failed-releases): author is not a valid query parameter

Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>

* Change title for automated releases

Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>

---------

Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>
This commit is contained in:
Fran Mulero
2025-05-29 13:56:17 +02:00
committed by GitHub
parent 95cf3123a0
commit 111b79cae1

View File

@@ -25,9 +25,9 @@ jobs:
run: |
# Obtain "CI Pipeline" failed runs executed by the bitnami-bot and filter those from release PRs with $MAX_RUNS_ATTEMPS or more attempts
curl -X GET -GLkso "${TEMP_FILE}" "${WORKFLOW_RUNS_URL}" \
-d "status=failure" -d "author=bitnami-bot" -d "created=>$(date -d '-3 day' '+%Y-%m-%d')" -d "per_page=100"
-d "status=failure" -d "actor=bitnami-bot" -d "created=>$(date -d '-3 day' '+%Y-%m-%d')" -d "per_page=100"
readarray -t retriable_runs_ids < <(jq --argjson runs ${MAX_RUNS_ATTEMPS} \
'.workflow_runs[] | select((.run_attempt < $runs) and (.display_title | contains("Release"))).id' "${TEMP_FILE}")
'.workflow_runs[] | select((.run_attempt < $runs) and (.display_title | contains("Update dependency references"))).id' "${TEMP_FILE}")
echo "Found ${#retriable_runs_ids[@]} failed runs that need to be retried"
if [[ ${#retriable_runs_ids[@]} -gt ${MAX_RETRY_SLOTS} ]]; then