Skip to content

Commit 1cbbc97

Browse files
Merge pull request #44 from IowaComputerGurus/Feature/UpdateGitVersionUsageAndNet8
updated gitVersion usage + net8
2 parents 5c071d4 + 413b191 commit 1cbbc97

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.github/workflows/ci-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ jobs:
2626
dotnet-version: 6.0.x
2727

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

3133
- name: Determine Version
3234
id: gitversion
33-
uses: gittools/actions/gitversion/execute@v0.11.0
35+
uses: gittools/actions/gitversion/execute@v3.0.0
3436
with:
3537
useConfigFile: true
3638

.github/workflows/release-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ jobs:
2424
dotnet-version: 6.0.x
2525

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

2931
- name: Determine Version
3032
id: gitversion
31-
uses: gittools/actions/gitversion/execute@v0.11.0
33+
uses: gittools/actions/gitversion/execute@v3.0.0
3234
with:
3335
useConfigFile: true
3436

GitVersion.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ mode: ContinuousDeployment
22
branches:
33
develop:
44
regex: develop
5-
tag: 'alpha'
5+
label: 'alpha'
66
increment: Patch
7+
prevent-increment:
8+
when-current-commit-tagged: true
79
source-branches: []
810
pull-request:
911
regex: (pull|pull\-requests|pr)[/-]
10-
tag: 'pr'
11-
tag-number-pattern: '[/-](?<number>\d+)[-/]'
12+
label: 'pr'
13+
label-number-pattern: '[/-](?<number>\d+)[-/]'
1214
increment: Patch
13-
prevent-increment-of-merged-branch-version: false
1415
is-release-branch: false
1516
source-branches: []
1617
ignore:

src/GitHubCostVisualizer.Web/GitHubCostVisualizer.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)