Skip to content

Update GitVersion Usage In Build & .NET 8 #42

@mitchelsellers

Description

@mitchelsellers

The usage of GitTools needs to be updated to utilize the new versions, this involves multiple changes.

'GitVersion.yml` Changes

  • Change tag to label
  • Change tag-number-pattern to label-number-pattern
  • Add to the develop branch rules the following after the increment: Patch line
    prevent-increment:
      when-current-commit-tagged: true

Build File Changes

Update the Install GitVersion and Determine Version ones to be the following.

    - name: Install GitVersion
      uses: gittools/actions/gitversion/setup@v3.0.0
      with:
        versionSpec: '6.x'

    - name: Determine Version
      id: gitversion
      uses: gittools/actions/gitversion/execute@v3.0.0
      with:
        useConfigFile: true

Note

This is a change from the prior usage of dotnet tool to do the install, and this should be done for ALL instances of usage of GitVersion

┆Issue is synchronized with this Wrike task by Unito

Metadata

Metadata

Labels

dependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions