Skip to content

Commit

Permalink
More syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 27, 2024
1 parent 6b7c99a commit 22baf99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

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

0 comments on commit 22baf99

Please sign in to comment.