From c1515a3602d0371cfc2e0b2b2b389b27be844d51 Mon Sep 17 00:00:00 2001 From: Songmu Date: Wed, 17 Aug 2022 14:44:52 +0900 Subject: [PATCH] retrieve next version after pushing changes into rc branch --- rcpr.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rcpr.go b/rcpr.go index 587fd98..e7cc66e 100644 --- a/rcpr.go +++ b/rcpr.go @@ -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