From e451c0dea2974ec5cff708cf29c6eb6f12ccdeca Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Tue, 6 Aug 2024 10:46:58 +0300 Subject: [PATCH] Update GitVersion and react to changes --- .github/workflows/build.yml | 10 +++++----- GitVersion.yml | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d966b91..0b47ae47 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,12 +40,12 @@ jobs: fetch-depth: 0 # Required for GitVersion - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v2 + uses: gittools/actions/gitversion/setup@v3.0.0 with: - versionSpec: '5.x' + versionSpec: '6.x' - name: Determine Version - uses: gittools/actions/gitversion/execute@v2 + uses: gittools/actions/gitversion/execute@v3.0.0 id: gitversion with: useConfigFile: true @@ -63,7 +63,7 @@ jobs: dotnet build --configuration Release --no-restore - -p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersion }} + -p:VersionPrefix=${{ steps.gitversion.outputs.fullSemVer }} - name: Test run: dotnet test --configuration Release --no-build @@ -74,7 +74,7 @@ jobs: --configuration Release --no-build --output ${{ github.workspace }}/drop - -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} + -p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} - name: Upload Artifact uses: actions/upload-artifact@v4 diff --git a/GitVersion.yml b/GitVersion.yml index 491b6000..8f8eccd3 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,3 +1,6 @@ # Only changing the mode from 'ContinuousDelivery' to 'ContinuousDeployment' results in better numbers (no '+' in them) # To get the default configuration comment out all the contents of this file and run 'gitversion /showconfig' mode: ContinuousDeployment +branches: + pull-request: + label: pr