Skip to content

Commit

Permalink
Merge pull request #37 from IowaComputerGurus/Features/UpdateGitVersi…
Browse files Browse the repository at this point in the history
…onUsage

updated gitVersion usage
  • Loading branch information
mitchelsellers authored Aug 19, 2024
2 parents b54c09c + c9357d4 commit a3306f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
dotnet-version: 6.0.x

- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'

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

- name: Restore Packages
run: dotnet restore "${{ env.solution-path }}"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
dotnet-version: 6.0.x

- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'

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

Expand Down
9 changes: 5 additions & 4 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ next-version: 7.0.0
branches:
develop:
regex: develop
tag: 'alpha'
label: 'alpha'
increment: Patch
prevent-increment:
when-current-commit-tagged: true
source-branches: []
pull-request:
regex: (pull|pull\-requests|pr)[/-]
tag: 'pr'
tag-number-pattern: '[/-](?<number>\d+)[-/]'
label: 'pr'
label-number-pattern: '[/-](?<number>\d+)[-/]'
increment: Patch
prevent-increment-of-merged-branch-version: false
is-release-branch: false
source-branches: []
ignore:
Expand Down

0 comments on commit a3306f8

Please sign in to comment.