mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-01 21:19:44 +11:00
Allow version without v (#194)
* add v to version if it does not have a leading v Signed-off-by: kpenfound <kyle@dagger.io> * test version without the v Signed-off-by: kpenfound <kyle@dagger.io> --------- Signed-off-by: kpenfound <kyle@dagger.io>
This commit is contained in:
parent
1b7f3b8d6b
commit
d809c269da
2 changed files with 21 additions and 0 deletions
|
|
@ -80,6 +80,9 @@ runs:
|
|||
VERSION=${{ inputs.version }}
|
||||
if [[ "$VERSION" == "latest" ]]; then
|
||||
VERSION=
|
||||
elif [[ -n "$VERSION" && "$VERSION" != v* ]]; then
|
||||
# Add 'v' prefix if version doesn't start with 'v' and is not empty
|
||||
VERSION="v$VERSION"
|
||||
fi
|
||||
latest=$(curl https://dl.dagger.io/dagger/versions/latest)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue