File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,13 +26,22 @@ jobs:
2626 run : dotnet build TransactionProcessor.sln --configuration Release
2727
2828 - name : ' Get Previous tag'
29- id : previoustag
30- uses : " WyriHaximus/github-action-get-previous-tag@1.0.0"
31-
29+ id : get-latest-tag
30+ uses : actions-ecosystem/action-get-latest-tag@v1
31+ with :
32+ semver_only : true
33+
34+ - name : ' Bump Version'
35+ id : bump-semver
36+ uses : actions-ecosystem/action-bump-semver@v1
37+ with :
38+ current_version : ${{ steps.get-latest-tag.outputs.tag }}
39+ level : patch
40+
3241 - name : Print Version
3342 id : next_version
34- run : echo ::set-output name=VERSION::${{ steps.previoustag .outputs.tag }}-build$GITHUB_RUN_NUMBER
35-
43+ run : echo ::set-output name=VERSION::${{ steps.bump-semver .outputs.new_version }}-build$GITHUB_RUN_NUMBER
44+
3645 - name : Build and Publish Nuget Packages
3746 run : |
3847 dotnet pack "TransactionProcessor.Client\TransactionProcessor.Client.csproj" /p:PackageVersion=${{ steps.next_version.outputs.VERSION }} --output Nugets
You can’t perform that action at this time.
0 commit comments