From ab3c69f20c774d0129403743d1262e01b0b4845d Mon Sep 17 00:00:00 2001 From: Sarmaged Date: Tue, 2 Jul 2024 03:05:07 +0300 Subject: [PATCH] Updated release.yml --- .github/workflows/release.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index deec39d..12a5ad4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,18 +31,14 @@ jobs: git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' - - name: List all tags - run: | - git fetch --tags - git tag --list + - name: Fetch all tags + run: git fetch --tags - name: Extract version and previous tag id: extract_info run: | VERSION=${GITHUB_REF#refs/tags/v} PREVIOUS_TAG=$(git describe --tags $(git rev-list --tags --skip=1 --max-count=1)) - echo "${VERSION}" - echo "${PREVIOUS_TAG#v}" echo "VERSION=$VERSION" >> $GITHUB_ENV echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV @@ -52,9 +48,6 @@ jobs: IFS='.' read -r -a NEW_VERSION_PARTS <<< "${VERSION}" IFS='.' read -r -a OLD_VERSION_PARTS <<< "${PREVIOUS_TAG#v}" - echo "New version parts: ${NEW_VERSION_PARTS[@]}" - echo "Old version parts: ${OLD_VERSION_PARTS[@]}" - if [ "${NEW_VERSION_PARTS[0]}" != "${OLD_VERSION_PARTS[0]}" ]; then UPDATE_TYPE=major elif [ "${NEW_VERSION_PARTS[1]}" != "${OLD_VERSION_PARTS[1]}" ]; then