Closed rob93c closed 1 year ago
Unfortunately it seems handlebars doesn't provide a !
operator, so you'd need the action to also provide {{is_not_default_branch}}
, but for now you can hard-code the branch:
Try type=ref,event=branch,enable=${{ github.ref != 'refs/heads/main' }}
? That should opt out.
Hi @polarathene and thank you for your help, I confirm your suggestion works as intended so to me the issue can be closed
Description
While working on my Docker workflow, I noticed that when merging changes to my
main
(the default branch in my case) 2 tags are created:latest
andmain
.How can I prevent
main
's creation?This is my configuration: