From db2dc280704e93ae1f8630386b47bcf94feea727 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Thu, 26 Jan 2023 09:47:42 -0500 Subject: [PATCH] Fix GitHub Action There is one more issue, I hope this is it. Signed-off-by: Kingdon Barrett --- action/action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action/action.yml b/action/action.yml index 19a47bb4..89731094 100644 --- a/action/action.yml +++ b/action/action.yml @@ -36,10 +36,9 @@ runs: # Ref: https://github.com/fluxcd/flux2/issues/3509#issuecomment-1400820992 VERSION_SLUG=$(curl https://api.github.com/repos/fluxcd/flux2/releases/latest --silent --location | grep tag_name) fi + VERSION=$(echo "${VERSION_SLUG}" | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-) fi - VERSION=$(echo "${VERSION_SLUG}" | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-) - BIN_URL="https://github.com/fluxcd/flux2/releases/download/v${VERSION}/flux_${VERSION}_linux_${ARCH}.tar.gz" curl --silent --fail --location "${BIN_URL}" --output /tmp/flux.tar.gz mkdir -p /tmp/flux