Skip to content

Commit 7e82a48

Browse files
authored
Go releaser support custom target commitish (#192)
1 parent 20eba38 commit 7e82a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ release:
5555
mode: keep-existing
5656
make_latest: false
5757
name_template: '{{.Tag}}'
58-
target_commitish: "{{ .Branch }}"
58+
target_commitish: '{{ if index .Env "GO_RELEASER_TARGET_COMMITISH" }}{{ .Env.GO_RELEASER_TARGET_COMMITISH }}{{ else }}{{ .Branch }}{{ end }}'
5959
prerelease: auto
6060

6161
changelog:

0 commit comments

Comments
 (0)