Skip to content

Commit bed8180

Browse files
authored
Merge pull request #41 from Bandwidth/task/split-get-set-env-steps
DX-2005 Split the get and set of the release version env variable
2 parents 7eac705 + 9b14d46 commit bed8180

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ jobs:
3333
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3434
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3535

36+
- name: Get Maven project version
37+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
38+
3639
- name: Set Maven project version
37-
run: |
38-
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
39-
mvn versions:set -DnewVersion=$RELEASE_VERSION
40+
run: mvn versions:set -DnewVersion=$RELEASE_VERSION
4041

4142
- name: Publish to Apache Maven Central
4243
run: mvn deploy

0 commit comments

Comments
 (0)