From d0805bd0d7ab22f9bd9f8993d4d96c98bd69cf8f Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Wed, 16 Oct 2024 11:31:52 -0600 Subject: [PATCH] ci: more debugging --- .github/workflows/scripts/helm-weekly-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scripts/helm-weekly-release.sh b/.github/workflows/scripts/helm-weekly-release.sh index d1c872d59a40..d92bf9324e87 100755 --- a/.github/workflows/scripts/helm-weekly-release.sh +++ b/.github/workflows/scripts/helm-weekly-release.sh @@ -13,6 +13,7 @@ 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}") + local sorted_results sorted_results="$(echo "${crane_results}" | sed -E "s/([weekly-]*k[[:digit:]]*)-([^-]*).*/\1-\2/g" | sort -Vur)" echo "${sorted_results}" | head -1 }