Skip to content

Commit

Permalink
More syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiggins@potomacitgroup.com committed Mar 27, 2024
1 parent 6b7c99a commit aa6f9b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .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 All @@ -35,8 +36,6 @@ jobs:

docker:
runs-on: ubuntu-latest
env:
image_tag: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{ VERSION }}
steps:
- uses: actions/checkout@v4
- name: Build Docker image
Expand Down

0 comments on commit aa6f9b4

Please sign in to comment.