We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c460812 commit 0fe45d0Copy full SHA for 0fe45d0
.github/workflows/check_latest_release.yml
@@ -38,11 +38,11 @@ jobs:
38
39
# Extract module name and version from the release tag
40
# Assuming the tag format is <module_name>-<version>, e.g., nidigital-1.4.0
41
+ with open(os.getenv("GITHUB_EVENT_PATH"), "r", encoding="utf-8") as event_file:
42
+ event = json.load(event_file)
43
if os.getenv("GITHUB_EVENT_NAME") == "workflow_dispatch":
- tag = os.getenv("INPUT_RELEASE_TAG")
44
+ tag = event["inputs"]["release_tag"]
45
else:
- with open(os.getenv("GITHUB_EVENT_PATH"), "r", encoding="utf-8") as event_file:
- event = json.load(event_file)
46
tag = event["release"]["tag_name"]
47
48
assert tag.count("-") == 1, f"Invalid tag format: {tag}. Expected format: <module_name>-<version>"
0 commit comments