diff --git a/.github/workflows/release-asgardeo-docs.yml b/.github/workflows/release-asgardeo-docs.yml index 0ac9308f05..a0e5d95d48 100644 --- a/.github/workflows/release-asgardeo-docs.yml +++ b/.github/workflows/release-asgardeo-docs.yml @@ -39,10 +39,12 @@ jobs: - name: Increment version run: | - set -eox pipefail - IFS='.' read -ra PARTS <<< "${{ env.CURRENT_VERSION }}" - ((PARTS[2]++)) - NEW_VERSION="${PARTS[0]}.${PARTS[1]}.${PARTS[2]}" + set -eo pipefail + IFS='.' read -r MAJOR MINOR PATCH <<< "${{ env.CURRENT_VERSION }}" + echo "Current version: MAJOR=$MAJOR, MINOR=$MINOR, PATCH=$PATCH" + ((PATCH++)) + NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}" + echo "New version: $NEW_VERSION" echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV echo "$NEW_VERSION" > VERSION shell: bash