From 54e3ca66c36b71117ba53dd35818d57cd140efe6 Mon Sep 17 00:00:00 2001 From: Sebastian Weigand Date: Fri, 6 Nov 2020 15:34:32 +0100 Subject: [PATCH] Unnest outpust creation Co-authored-by: Sviatoslav Sydorenko --- .github/workflows/publish-major-minor.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-major-minor.yml b/.github/workflows/publish-major-minor.yml index 1745871b..7e845dbd 100644 --- a/.github/workflows/publish-major-minor.yml +++ b/.github/workflows/publish-major-minor.yml @@ -26,14 +26,14 @@ jobs: version = parse(tag_name) print(f"tag_name: {tag_name}") print(f"version: {version}") - if not version.is_prerelease: - print("Creating new major and minor tags!") - print(f"::set-output name=original_tag_name::{tag_name}") - print(f"::set-output name=major_version::v{version.major}") - print(f"::set-output name=minor_version::v{version.major}.{version.minor}") - else: + if version.is_prerelease: print("No tags created (dev or pre version)!") + exit(0) + print("Creating new major and minor tags!") + print(f"::set-output name=original_tag_name::{tag_name}") + print(f"::set-output name=major_version::v{version.major}") + print(f"::set-output name=minor_version::v{version.major}.{version.minor}") - name: Push Tags Version if: steps.get_versions.outputs.original_tag_name != '' env: