Skip to content

Commit 0359ee8

Browse files
Update .github/workflows/release.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0dd1d50 commit 0359ee8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jobs:
4444
- name: Extract version from tag or input
4545
id: version
4646
run: |
47-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
48-
VERSION="${{ github.event.inputs.version }}"
49-
TAG="v${VERSION}"
47+
if [[ "$VERSION" == v* ]]; then
48+
TAG="$VERSION"
49+
else
50+
TAG="v$VERSION"
51+
fi
5052
echo "version=${VERSION}" >> $GITHUB_OUTPUT
5153
echo "tag=${TAG}" >> $GITHUB_OUTPUT
5254
else

0 commit comments

Comments
 (0)