Skip to content

Commit a84a104

Browse files
committed
check-release.pl: check for "v1.2.3" tags last
Otherwise, the later tag variation checking won't work as expected.
1 parent cd0214b commit a84a104

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check-release.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ ($$$)
7070
# look for a suitable tag
7171
my $tag = "$artifactId-$releaseVersion";
7272
if (tagExists($tag)) { return $tag; }
73-
$tag = "v$releaseVersion";
74-
if (tagExists($tag)) { return $tag; }
7573
if ($tag =~ /_$/) {
7674
$tag =~ s/_$//;
7775
if (tagExists($tag)) { return $tag; }
@@ -80,6 +78,8 @@ ($$$)
8078
$tag =~ s/^pom-//;
8179
if (tagExists($tag)) { return $tag; }
8280
}
81+
$tag = "v$releaseVersion";
82+
if (tagExists($tag)) { return $tag; }
8383

8484
# no tag found; extract ref from the JAR
8585
return extractRef($groupId, $artifactId, $releaseVersion);

0 commit comments

Comments
 (0)