Skip to content

Commit

Permalink
Fixup release-detection conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jul 26, 2023
1 parent 9e1c31c commit 69b4b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
# GitHub Actions expressions don't have great conditional support, so
# writing a ternary expression looks a lot like bash. In Python, this
# would read as:
# github.release.tag_name if github.event_name == 'release' else 'latest'
# github.event.release.tag_name if github.event_name == 'release' else 'latest'
# https://docs.github.com/en/actions/learn-github-actions/expressions
IMAGE_TAG: "${{ github.event_name == 'release' && github.release.tag_name || 'latest' }}"
IMAGE_TAG: "${{ github.event_name == 'release' && github.event.release.tag_name || 'latest' }}"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
Expand Down

0 comments on commit 69b4b8c

Please sign in to comment.