Skip to content

Commit 2ef55d1

Browse files
committed
Use explicit check for version instead of variable substitution
1 parent 6d67eeb commit 2ef55d1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/on-release-tag.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
- name: Build
4444
env:
4545
DOCKER_PUSH: true
46-
run: ./gradlew \
47-
-Pversion=${"${{ github.event.inputs.version }}":-${GITHUB_REF_NAME#v}} \
48-
bootBuildImage
46+
run: |
47+
# Determine version from tag or input
48+
VERSION="${{ github.event.inputs.version || '' }}"
49+
if [ -z "$VERSION" ]; then
50+
VERSION="${GITHUB_REF_NAME#v}"
51+
fi
52+
53+
./gradlew -Pversion=$VERSION bootBuildImage

0 commit comments

Comments
 (0)