Skip to content

Commit

Permalink
ci(deps): bump GitVersion to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Dec 15, 2024
1 parent 7bb2d89 commit dd9be65
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
31 changes: 20 additions & 11 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -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: []

0 comments on commit dd9be65

Please sign in to comment.