Skip to content

Commit 14f3801

Browse files
committed
Check version: More explicit error message
1 parent d4f3ac3 commit 14f3801

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/wheel-releaser.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ jobs:
4040
if res:
4141
print("Version number OK ('{version}')")
4242
else:
43-
print(f"::error::Invalid version number '{version}' - (see https://semver.org)")
43+
message = [
44+
f"::error::INVALID RELEASE VERSION NUMBER '{version}'",
45+
"Version must comply to Semantic Versioning standard:",
46+
"\n\tmajor.minor.patch[-pre]\n",
47+
"See https://semver.org for more information",
48+
"or leave the field blank for default value\n"
49+
]
50+
print("\n".join(message))
4451
sys.exit(1)
4552
4653
call-build-wheels:

0 commit comments

Comments
 (0)