Skip to content

Commit 22baf99

Browse files
author
jhiggins@potomacitgroup.com
committed
More syntax fixes
1 parent 6b7c99a commit 22baf99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
# Workaround for no ternary operator, use short-circuiting
12+
# I'd love to not repeat the version string, but env can't be recursive
1213
VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}
1314
MAC_PACKAGE: OpenCRAVAT.${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.pkg
1415
WINDOWS_INSTALLER: OpenCRAVAT-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.exe
@@ -36,7 +37,7 @@ jobs:
3637
docker:
3738
runs-on: ubuntu-latest
3839
env:
39-
image_tag: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{ VERSION }}
40+
image_tag: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{ env.VERSION }}
4041
steps:
4142
- uses: actions/checkout@v4
4243
- name: Build Docker image

0 commit comments

Comments
 (0)