We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
v
1 parent 43d944b commit 01a7e48Copy full SHA for 01a7e48
.github/actions/build-nix-image/action.yml
@@ -65,7 +65,12 @@ runs:
65
echo "GIT_SHA_SHORT=$CI_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT" >> $GITHUB_ENV
66
elif [ -n "${{ inputs.releaseVersion }}" ]; then
67
tag_base="${{ inputs.releaseVersion }}"
68
- tag="v$tag_base"
+
69
+ if [[ $tag_base =~ ^[0-9] ]]; then
70
+ tag="v$tag_base"
71
+ else
72
+ tag="$tag_base"
73
+ fi
74
75
sha=$(git rev-parse "$tag")
76
short_sha=$(git rev-parse --short "$tag")
0 commit comments