Skip to content

Commit

Permalink
fix endswith condition to check branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
rob93c committed Oct 15, 2023
1 parent 342754b commit 934d0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
rob93c/christmas-greeter
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch,enable=${{ endsWith(github.ref, 'master') }}
type=ref,event=branch,enable=${{ "!endsWith(github.ref, 'master')" }}
type=ref,event=pr
- name: Upload Docker image
Expand Down

0 comments on commit 934d0ea

Please sign in to comment.