From 1cd29f8a685e77ddd28b4642a9d0521730868c45 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Wed, 16 Oct 2024 12:04:26 -0600 Subject: [PATCH] ci: pipefail is a fail --- .github/workflows/scripts/helm-weekly-release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/helm-weekly-release.sh b/.github/workflows/scripts/helm-weekly-release.sh index 662e3bb8a8a3e..ac026a5550ddd 100755 --- a/.github/workflows/scripts/helm-weekly-release.sh +++ b/.github/workflows/scripts/helm-weekly-release.sh @@ -13,7 +13,9 @@ find_latest_image_tag() { local regExp="^(k|weekly-k)\d+-[a-z0-9]+" local crane_results crane_results="$(crane ls "${docker_hub_repo}" | grep -P "${regExp}" | sed -E "s/([weekly-]*k[[:digit:]]*)-([^-]*).*/\1-\2/g" | sort -Vur)" - echo "${crane_results}" | tail -n +1 | head -1 + set +o pipefail + echo "${crane_results}" | head -1 + set -o pipefail } # takes k197-abcdef and returns r197, k197-abcdef-arm64 and returns k197, weekly-k197-abcdef and returns k197