We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 464fed2 commit 02765c0Copy full SHA for 02765c0
build/BuildContext.cs
@@ -47,8 +47,8 @@ public BuildContext(ICakeContext context) : base(context)
47
}
48
else if (workflow.RefType == GitHubActionsRefType.Tag)
49
{
50
- var baseVersion = workflow.RefName;
51
- if (!Regex.IsMatch(baseVersion, @"v\d+.\d+.\d+"))
+ var baseVersion = workflow.RefName.Split('/')[^1];
+ if (!VersionRegex.IsMatch(baseVersion))
52
throw new Exception($"Invalid tag: {baseVersion}");
53
54
VersionBase = baseVersion[1..];
0 commit comments