mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 20:27:38 +08:00
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:
4
.github/workflows/retry-failed-releases.yml
vendored
4
.github/workflows/retry-failed-releases.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user