Skip to content

Commit

Permalink
[CI] Quick tag check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Aug 20, 2024
1 parent 464fed2 commit 02765c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/BuildContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public BuildContext(ICakeContext context) : base(context)
}
else if (workflow.RefType == GitHubActionsRefType.Tag)
{
var baseVersion = workflow.RefName;
if (!Regex.IsMatch(baseVersion, @"v\d+.\d+.\d+"))
var baseVersion = workflow.RefName.Split('/')[^1];
if (!VersionRegex.IsMatch(baseVersion))
throw new Exception($"Invalid tag: {baseVersion}");

VersionBase = baseVersion[1..];
Expand Down

0 comments on commit 02765c0

Please sign in to comment.