From dd9be650f087f085148bbf0697ab2e4ee3d7b260 Mon Sep 17 00:00:00 2001 From: skwasjer <11424653+skwasjer@users.noreply.github.com> Date: Sun, 15 Dec 2024 08:08:57 +0100 Subject: [PATCH] ci(deps): bump GitVersion to latest --- .github/workflows/main.yml | 8 +++----- GitVersion.yml | 31 ++++++++++++++++++++----------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8162008..d452994 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,9 +21,7 @@ jobs: runs-on: ubuntu-latest env: IGNORE_NORMALISATION_GIT_HEAD_MOVE: 1 - # v5.10.0 of GitVersion has a fix for incorrect versions when building on tag. See https://github.com/GitTools/GitVersion/issues/2838 - # It appears that the fix then had a regression in a later version, so pinning to v5.10.0. See https://github.com/GitTools/GitVersion/issues/3351#issuecomment-1403657689 - GITVERSION: '5.10.0' + GITVERSION: '6.0.x' outputs: version: ${{ steps.gitversion.outputs.fullSemVer }} package-version: ${{ steps.gitversion.outputs.fullSemVer }} @@ -37,12 +35,12 @@ jobs: fetch-tags: true - name: Install GitVersion ${{ env.GITVERSION }} - uses: gittools/actions/gitversion/setup@v0.11.0 + uses: gittools/actions/gitversion/setup@v3.1.1 with: versionSpec: ${{ env.GITVERSION }} - name: Determine version - uses: gittools/actions/gitversion/execute@v0.11.0 + uses: gittools/actions/gitversion/execute@v3.1.1 id: gitversion with: useConfigFile: true diff --git a/GitVersion.yml b/GitVersion.yml index 64a722d..9637916 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,21 +1,30 @@ +#workflow: TrunkBased/preview1 assembly-versioning-scheme: MajorMinorPatch mode: ContinuousDelivery -continuous-delivery-fallback-tag: 'ci' -# If your package version contains one of the following, they will not be visible from the older clients -# (NuGet clients before 4.3.0 or Visual Studio before 2017 version 15.3): -# The pre-release label is dot-separated, e.g. 1.0.0-alpha.1 -# The version has build-metadata, e.g. 1.0.0+githash We recommend you consider this to be a beta-feature until a significant majority of our users are on these latest clients that understand Semantic Versioning 2.0.0. -# See https://devblogs.microsoft.com/nuget/whats-nu-in-nuget-with-visual-studio-2017-version-15-3/#support-for-semantic-versioning-200 -legacy-semver-padding: 1 -build-metadata-padding: 1 -commits-since-version-source-padding: 1 +tag-prefix: '[vV]' +major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)" +minor-version-bump-message: "^(feat)(\\([\\w\\s-,/\\\\]*\\))?:" +patch-version-bump-message: "^(fix|perf)(\\([\\w\\s-,/\\\\]*\\))?:" +no-bump-message: \[skip ci\] +semantic-version-format: Strict +strategies: + - Fallback + - ConfiguredNextVersion + - MergeMessage + - TaggedCommit + # - TrackReleaseBranches + # - VersionInBranchName branches: main: regex: ^main$ - tag: 'ci' + label: 'ci' pull-request: + mode: ContinuousDelivery regex: ^(pull|pull\-requests|pr)[/-] + label: pr + increment: Patch + unknown: mode: ContinuousDelivery - tag: pr + increment: Patch ignore: sha: []