From d46c33402add0aba4e1184704c9ea9a78a43bcc0 Mon Sep 17 00:00:00 2001 From: Jeremy Adams Date: Sun, 22 Dec 2024 09:46:50 -0800 Subject: [PATCH] fix Signed-off-by: Jeremy Adams --- action.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index f5887f1..416333f 100644 --- a/action.yml +++ b/action.yml @@ -59,14 +59,10 @@ runs: fi printf '%s/bin' "$prefix_dir" >> $GITHUB_PATH - # If the dagger version is 'latest', set the version back to an empty - # string. This allows the install script to detect and install the latest - # version itself + # A version of 'latest' is respected in the install.sh script # We remove any leading 'v' on VERSION here to ensure a match VERSION=${{ inputs.version }} - if [[ "$VERSION" == "latest" ]]; then - VERSION= - else + if [[ "$VERSION" != "latest" ]]; then VERSION=$(echo -n $VERSION | cut -d' ' -f2 | cut -dv -f2 | tr -d '\n') fi