Skip to content

Commit

Permalink
ci: fix tag generation logic (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansergeevitch authored Feb 1, 2024
1 parent 681cf4c commit a682443
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a682443

Please sign in to comment.