diff --git a/.github/workflows/new-rc-test.yml b/.github/workflows/new-rc-test.yml index 4c6978b13..c776b53cc 100644 --- a/.github/workflows/new-rc-test.yml +++ b/.github/workflows/new-rc-test.yml @@ -21,8 +21,5 @@ jobs: id: set_version run: | chmod +x ./scripts/generate-rc-version.sh - VERSION=$(./scripts/generate-rc-version.sh ${{ github.ref }}) - echo "version=$VERSION" >> "$GITHUB_OUTPUT" - - name: Display Version - run: | - echo "App Version: ${{ steps.set_version.outputs.version }}" + ./scripts/generate-rc-version.sh ${{ github.ref }} + \ No newline at end of file diff --git a/scripts/generate-rc-version.sh b/scripts/generate-rc-version.sh index 17db0149f..aadecf996 100755 --- a/scripts/generate-rc-version.sh +++ b/scripts/generate-rc-version.sh @@ -5,6 +5,8 @@ BRANCH_NAME=$1 # Extract version number from the branch name VERSION=$(echo $BRANCH_NAME | grep -oP 'release\/\K\d+\.\d+\.\d+') +echo "Version: $VERSION" + # Check if there are any releases matching the branch's version pattern RELEASES=$(git tag --list "$VERSION-rc*" | sort -V)