Skip to content

Commit

Permalink
Merge pull request #4106 from ashensw/asgardeo-docs
Browse files Browse the repository at this point in the history
Improve asgardeo docs release workflow
  • Loading branch information
ashensw authored Nov 8, 2023
2 parents 226d990 + 8508390 commit f5a2c39
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release-asgardeo-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5a2c39

Please sign in to comment.