Skip to content

Commit

Permalink
Fixup to release version tagged devcontainer publishing logic (#841)
Browse files Browse the repository at this point in the history
Use a tagged release first, and a latest release secondarily.
  • Loading branch information
bpkroth authored Aug 14, 2024
1 parent 19c32ba commit f3eb624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ jobs:
run: |
set -x
image_tag=''
if [ "${{ github.ref }}" == 'refs/heads/main' ]; then
image_tag='latest'
elif [ "${{ github.ref_type }}" == 'tag' ]; then
if [ "${{ github.ref_type }}" == 'tag' ]; then
image_tag="${{ github.ref_name }}"
elif [ "${{ github.ref }}" == 'refs/heads/main' ]; then
image_tag='latest'
fi
if [ -z "$image_tag" ]; then
echo "ERROR: Unhandled event condition or ref: event=${{ github.event}}, ref=${{ github.ref }}, ref_type=${{ github.ref_type }}"
Expand Down

0 comments on commit f3eb624

Please sign in to comment.