Skip to content

Commit

Permalink
Merge pull request #70 from Songmu/fix-release
Browse files Browse the repository at this point in the history
fix version file detection in releasing
  • Loading branch information
Songmu authored Aug 28, 2022
2 parents 615266d + 7363ea0 commit 896add4
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 896add4

Please sign in to comment.