Setting createTag = true should allow creating a release when the tag does not yet exist.
Setting createTag = false should fail when creating a release for a tag that doesn't exist.
Currently, the check is performed before creating a new release, and only if createTag = false. However the logic is inverted and creating will fail if the tag does exist.
Also
I'm wondering how this should interact with github.draft. Theoretically, it shouldn't matter whether the tag exists when creating a draft, because releases don't create a git tag until they get "published" (draft=false).
createTag = true
should allow creating a release when the tag does not yet exist.createTag = false
should fail when creating a release for a tag that doesn't exist.Currently, the check is performed before creating a new release, and only if
createTag = false
. However the logic is inverted and creating will fail if the tag does exist.Also
I'm wondering how this should interact with
github.draft
. Theoretically, it shouldn't matter whether the tag exists when creating a draft, because releases don't create a git tag until they get "published" (draft=false
).