Skip to content

Commit c460812

Browse files
committed
Add assert for better error if we tag format is wrong
1 parent 531fef7 commit c460812

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/check_latest_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
event = json.load(event_file)
4646
tag = event["release"]["tag_name"]
4747
48+
assert tag.count("-") == 1, f"Invalid tag format: {tag}. Expected format: <module_name>-<version>"
4849
module_name, module_version = tag.split("-")
4950
with open(os.getenv("GITHUB_OUTPUT"), "a", encoding="utf-8") as output_file:
5051
output_file.write(f"module_name={module_name}\n")

0 commit comments

Comments
 (0)