Skip to content

Commit

Permalink
fix version file detection in releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Aug 28, 2022
1 parent 615266d commit 7363ea0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tagpr

import (
"context"
"strings"

"github.com/google/go-github/v45/github"
)
Expand Down Expand Up @@ -41,7 +42,8 @@ func (tp *tagpr) tagRelease(ctx context.Context, pr *github.PullRequest, currVer
}
tp.c.Git("checkout", releaseBranch)
} else {
vfile = tp.cfg.versionFile.String()
vfiles := strings.Split(tp.cfg.versionFile.String(), ",")
vfile = strings.TrimSpace(vfiles[0])
}

var nextTag string
Expand Down

0 comments on commit 7363ea0

Please sign in to comment.