Skip to content

Commit

Permalink
Merge pull request #24 from Songmu/retrieve-again
Browse files Browse the repository at this point in the history
retrieve next version after pushing changes into rc branch
  • Loading branch information
Songmu authored Aug 17, 2022
2 parents cd3191d + c1515a3 commit 2a40dfe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rcpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,16 @@ func Run(ctx context.Context, argv []string, outStream, errStream io.Writer) err
return err
}

if vfile != "" {
nVer, _ := retrieveVersionFromFile(vfile)
if nVer != "" && nVer != nextNakedVer {
nextNakedVer = nVer
nextTagCandidate = nextNakedVer
if vPrefix {
nextTagCandidate = "v" + nextTagCandidate
}
}
}
previousTag := &latestSemverTag
if *previousTag == "" {
previousTag = nil
Expand Down

0 comments on commit 2a40dfe

Please sign in to comment.