File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 33name : Deploy Pre-release to Maven Central
44
55on :
6+ workflow_dispatch :
67 pull_request :
78 branches :
89 - staging
4647 id : old_version
4748 run : |
4849 export MVN_OLD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
49- echo "previous_version=$MVN_OLD_VERSION" >> $GITHUB_OUTPUT
50+ echo "previous_version=${ MVN_OLD_VERSION:1} " >> $GITHUB_OUTPUT
5051
5152 - name : Update pre-release version
5253 run : yarn prerelease
6061 - name : Generate Change log
6162 if : steps.version.outputs.version != null
6263 run : |
63- yarn changelog --from ${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
64+ yarn changelog --from v ${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
6465
6566 - name : Upload updated version related files to artifacts
6667 uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 33name : Deploy Release to GitHub and Maven Central
44
55on :
6+ workflow_dispatch :
67 pull_request :
78 branches :
89 - main
4748 id : old_version
4849 run : |
4950 export MVN_OLD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
50- echo "previous_version=$MVN_OLD_VERSION" >> $GITHUB_OUTPUT
51+ echo "previous_version=${ MVN_OLD_VERSION:1} " >> $GITHUB_OUTPUT
5152
5253 - name : Update release version
5354 run : yarn release
6162 - name : Generate Change log
6263 if : steps.version.outputs.version != null
6364 run : |
64- yarn changelog --from ${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
65+ yarn changelog --from v ${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
6566
6667 - name : Upload updated version related files to artifacts
6768 uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments