Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Adams <[email protected]>
  • Loading branch information
jpadams committed Dec 22, 2024
1 parent 55c36bf commit d46c334
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d46c334

Please sign in to comment.