Skip to content

Commit 02765c0

Browse files
committed
[CI] Quick tag check fix
1 parent 464fed2 commit 02765c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/BuildContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public BuildContext(ICakeContext context) : base(context)
4747
}
4848
else if (workflow.RefType == GitHubActionsRefType.Tag)
4949
{
50-
var baseVersion = workflow.RefName;
51-
if (!Regex.IsMatch(baseVersion, @"v\d+.\d+.\d+"))
50+
var baseVersion = workflow.RefName.Split('/')[^1];
51+
if (!VersionRegex.IsMatch(baseVersion))
5252
throw new Exception($"Invalid tag: {baseVersion}");
5353

5454
VersionBase = baseVersion[1..];

0 commit comments

Comments
 (0)