diff --git a/helm/helm.go b/helm/helm.go index cd71e2d..3488a20 100644 --- a/helm/helm.go +++ b/helm/helm.go @@ -119,11 +119,13 @@ func (c *Chart) Version() (*string, error) { } } - if commits != 0 { - if prerel != "" { - prerel += "." + if branch == "master" { + if commits != 0 { + if prerel != "" { + prerel += "." + } + prerel += strconv.Itoa(commits) } - prerel += strconv.Itoa(commits) } if prerel != "" {