From 9c1613c88ce8a8ad7403c7380254ebe73ff0bbd9 Mon Sep 17 00:00:00 2001 From: Sarmaged Date: Tue, 2 Jul 2024 01:33:17 +0300 Subject: [PATCH] Updated workflows --- .github/workflows/notify.yml | 3 +++ .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 728b9c4..e6728a4 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -10,6 +10,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Determine version update type id: determine_version run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4105f6c..b114ff1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: id: extract_info run: | TAG_NAME=${GITHUB_REF#refs/tags/} - VERSION=$TAG_NAME + VERSION=${GITHUB_REF#refs/tags/v} PREVIOUS_TAG=$(git describe --tags $(git rev-list --tags --skip=1 --max-count=1)) echo "VERSION=$VERSION" >> $GITHUB_ENV echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV @@ -43,7 +43,7 @@ jobs: - name: Determine update type id: determine_update_type run: | - IFS='.' read -r -a NEW_VERSION_PARTS <<< "${VERSION#v}" + IFS='.' read -r -a NEW_VERSION_PARTS <<< "${TAG_NAME#v}" IFS='.' read -r -a OLD_VERSION_PARTS <<< "${PREVIOUS_TAG#v}" if [ "${NEW_VERSION_PARTS[0]}" -ne "${OLD_VERSION_PARTS[0]}" ]; then