Skip to content

Commit 7bec084

Browse files
Update prereleasenuget.yml
1 parent 748fa57 commit 7bec084

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/prereleasenuget.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)