fix: use index for optional env var in version_template

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
pull/31343/head
Terry Howe 1 week ago
parent eaa09100b9
commit e49a1dc16e
No known key found for this signature in database

@ -78,7 +78,7 @@ checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ if .Env.GORELEASER_CURRENT_TAG }}{{ .Env.GORELEASER_CURRENT_TAG }}{{ else }}{{ incpatch .Version }}-next{{ end }}"
version_template: "{{ if index .Env \"GORELEASER_CURRENT_TAG\" }}{{ .Env.GORELEASER_CURRENT_TAG }}{{ else }}{{ incpatch .Version }}-next{{ end }}"
changelog:
sort: asc

Loading…
Cancel
Save