Skip to content

Commit 1adecd0

Browse files
authored
Fix setting output value
Maybe fixed setting the version into an output variable at the end of the increment version step.
1 parent b14f317 commit 1adecd0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/maven-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
server-id: github
2727

2828
- name: Increment the version number
29+
id: incVer
2930
run: |
3031
mvn validate -DincrementBuild
3132
mvn versions:commit
@@ -35,7 +36,7 @@ jobs:
3536
git add pom.xml
3637
git commit -m "[skip ci]"
3738
git tag -a v$APPLICATION_VERSION -m "Release v$APPLICATION_VERSION"
38-
echo ::set-output name=application_version::v$APPLICATION_VERSION
39+
echo "::set-output name=application_version::v$APPLICATION_VERSION"
3940
- name: Push changes
4041
uses: ad-m/github-push-action@master
4142
with:
@@ -49,9 +50,9 @@ jobs:
4950
- name: Create release
5051
uses: softprops/action-gh-release@v1
5152
with:
52-
name: ${{ steps.vars.outputs.application_version }}
53+
name: ${{ steps.incVer.outputs.application_version }}
5354
files: target/*.jar
54-
tag_name: refs/tags/${{ steps.vars.outputs.application_version }}
55+
tag_name: refs/tags/${{ steps.incVer.outputs.application_version }}
5556

5657
- name: Publish package
5758
run: mvn --batch-mode deploy

0 commit comments

Comments
 (0)