Skip to content

Commit 54e3ca6

Browse files
s-weigandwebknjaz
andcommitted
Unnest outpust creation
Co-authored-by: Sviatoslav Sydorenko <[email protected]>
1 parent 5baaafc commit 54e3ca6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: .github/workflows/publish-major-minor.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
version = parse(tag_name)
2727
print(f"tag_name: {tag_name}")
2828
print(f"version: {version}")
29-
if not version.is_prerelease:
30-
print("Creating new major and minor tags!")
31-
print(f"::set-output name=original_tag_name::{tag_name}")
32-
print(f"::set-output name=major_version::v{version.major}")
33-
print(f"::set-output name=minor_version::v{version.major}.{version.minor}")
34-
else:
29+
if version.is_prerelease:
3530
print("No tags created (dev or pre version)!")
31+
exit(0)
3632
33+
print("Creating new major and minor tags!")
34+
print(f"::set-output name=original_tag_name::{tag_name}")
35+
print(f"::set-output name=major_version::v{version.major}")
36+
print(f"::set-output name=minor_version::v{version.major}.{version.minor}")
3737
- name: Push Tags Version
3838
if: steps.get_versions.outputs.original_tag_name != ''
3939
env:

0 commit comments

Comments
 (0)