From a682443ca6f360d809a94ad713f4040190100e4f Mon Sep 17 00:00:00 2001 From: Stepan Burlakov Date: Thu, 1 Feb 2024 14:26:45 +0200 Subject: [PATCH] ci: fix tag generation logic (#72) --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bfa42e..8525314 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,13 +50,10 @@ jobs: - name: Generate new version tag id: tag_generation run: | - OLD_TAG=$(git describe --tags --abbrev=0) - OLD_VERSION=$(echo $OLD_TAG | cut -c 2-) - echo "Old tag was ${OLD_TAG}" + OLD_VERSION=$(git describe --tags --abbrev=0) + echo "Old version was ${OLD_VERSION}" CHANGE_LOG=$(git log $OLD_TAG..HEAD --pretty=format:%s) NEW_VERSION=$(python3 release_action/scripts/generate_version_tag.py "${CHANGE_LOG}" $OLD_VERSION --major_release "${{ inputs.major-release }}") - NEW_TAG="v"$NEW_VERSION - echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT shell: bash