Skip to content

Commit

Permalink
fixes release pipeline var expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Fadelis committed Jan 27, 2021
1 parent 4ffe4e3 commit 9bac362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
run: |
export GITHUB_TAG=${GITHUB_REF##*/}
export NEW_SNAPSHOT_VERSION=${GITHUB_TAG%%${GITHUB_TAG##*[!0-9]}}$((${GITHUB_TAG##*[!0-9]} + 1))-SNAPSHOT
sed -i 's/<version>[0-9.]*<\/version>/<version>GITHUB_TAG<\/version>/' README.md
mvn versions:set -DnewVersion=${NEW_SNAPSHOT_VERSION}
sed -i 's/<version>[0-9.]*<\/version>/<version>$GITHUB_TAG<\/version>/' README.md
mvn versions:set -DnewVersion=$NEW_SNAPSHOT_VERSION
- name: Commit snapshot version bump
uses: EndBug/add-and-commit@v7
Expand Down

0 comments on commit 9bac362

Please sign in to comment.