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.
2 parents 833b369 + 59f5a5b commit 737d2d4Copy full SHA for 737d2d4
1 file changed
.github/workflows/release-publish.yml
@@ -60,8 +60,14 @@ jobs:
60
61
# Only validate tag match for actual release events, not manual dispatch
62
if ("${{ github.event_name }}" -eq "release") {
63
- if ($releaseVersion -ne $tagName) {
64
- throw "Release version ($releaseVersion) does not match tag name ($tagName)"
+ # Strip 'v' prefix from tag name if present for comparison
+ $tagNameForComparison = $tagName
65
+ if ($tagName.StartsWith("v")) {
66
+ $tagNameForComparison = $tagName.Substring(1)
67
+ }
68
+
69
+ if ($releaseVersion -ne $tagNameForComparison) {
70
+ throw "Release version ($releaseVersion) does not match tag name ($tagName - stripped: $tagNameForComparison)"
71
}
72
echo "✅ Release version matches tag name"
73
} else {
0 commit comments