From 7363ea057eac430ae4c0f352e96579d761d8ad51 Mon Sep 17 00:00:00 2001 From: Songmu Date: Mon, 29 Aug 2022 00:58:56 +0900 Subject: [PATCH] fix version file detection in releasing --- tag.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tag.go b/tag.go index b8b97b9..a12daa6 100644 --- a/tag.go +++ b/tag.go @@ -2,6 +2,7 @@ package tagpr import ( "context" + "strings" "github.com/google/go-github/v45/github" ) @@ -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