File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,13 @@ jobs:
3838
3939 # Extract module name and version from the release tag
4040 # 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)
4143 if os.getenv("GITHUB_EVENT_NAME") == "workflow_dispatch":
42- tag = os.getenv("INPUT_RELEASE_TAG")
44+ tag = event["inputs"]["release_tag"]
4345 else:
44- with open(os.getenv("GITHUB_EVENT_PATH"), "r", encoding="utf-8") as event_file:
45- event = json.load(event_file)
4646 tag = event["release"]["tag_name"]
4747
48- print(dict(os.environ))
4948 assert tag.count("-") == 1, f"Invalid tag format: {tag}. Expected format: <module_name>-<version>"
5049 module_name, module_version = tag.split("-")
5150 with open(os.getenv("GITHUB_OUTPUT"), "a", encoding="utf-8") as output_file:
You can’t perform that action at this time.
0 commit comments