Skip to content

Commit 522973d

Browse files
author
Petr Sramek
committed
fixed versioning output
1 parent bb58fc1 commit 522973d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ jobs:
3838
name: Versioning with GitVersion
3939
runs-on: ubuntu-latest
4040
outputs:
41-
ASSEMBLY_VERSION: ${{ steps.gitversion.outputs.ASSEMBLY_VERSION }}
42-
ASSEMBLY_INFORMATIONAL_VERSION: ${{ steps.gitversion.outputs.ASSEMBLY_INFORMATIONAL_VERSION }}
43-
FILE_VERSION: ${{ steps.gitversion.outputs.FILE_VERSION }}
44-
PACKAGE_VERSION: ${{ steps.gitversion.outputs.PACKAGE_VERSION }}
41+
ASSEMBLY_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}.${{ github.run_number }}
42+
ASSEMBLY_INFORMATIONAL_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}.${{ github.run_number }}+${{ steps.gitversion.outputs.sha }}
43+
FILE_VERSION: ${{ steps.gitversion.outputs.assemblySemVer }}.${{ github.run_number }}
44+
PACKAGE_VERSION: ${{ fromJSON(format('[ "{0}{1}", "{0}" ]', steps.gitversion.outputs.assemblySemVer, steps.gitversion.outputs.preReleaseLabelWithDash))[fromJSON(inputs.is-release)] }}
45+
4546
steps:
4647
- uses: actions/checkout@v4
4748
with:

0 commit comments

Comments
 (0)