Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(deps): bump GitVersion to latest #116

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: []
Loading