Skip to content

Commit 1434b6a

Browse files
committed
only append commit number for master
1 parent fdd81ab commit 1434b6a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

helm/helm.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,13 @@ func (c *Chart) Version() (*string, error) {
119119
}
120120
}
121121

122-
if commits != 0 {
123-
if prerel != "" {
124-
prerel += "."
122+
if branch == "master" {
123+
if commits != 0 {
124+
if prerel != "" {
125+
prerel += "."
126+
}
127+
prerel += strconv.Itoa(commits)
125128
}
126-
prerel += strconv.Itoa(commits)
127129
}
128130

129131
if prerel != "" {

0 commit comments

Comments
 (0)