Skip to content

Commit f6c1754

Browse files
committed
chore(ci): use .NET SDK version from global.json
1 parent e9197a3 commit f6c1754

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/build+test+deploy.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ on:
1414
branches:
1515
- '**'
1616

17-
env:
18-
DOTNET_VERSION: 9.0.201
19-
2017
jobs:
2118
buildAndTest:
2219

@@ -33,7 +30,7 @@ jobs:
3330
- name: Setup .NET
3431
uses: actions/setup-dotnet@v4
3532
with:
36-
dotnet-version: ${{ env.DOTNET_VERSION }}
33+
global-json-file: global.json
3734
- name: Restore tools
3835
run: dotnet tool restore
3936
- name: Restore dependencies
@@ -55,7 +52,7 @@ jobs:
5552
- name: Setup .NET
5653
uses: actions/setup-dotnet@v4
5754
with:
58-
dotnet-version: ${{ env.DOTNET_VERSION }}
55+
global-json-file: global.json
5956
- name: Restore tools
6057
run: dotnet tool restore
6158
- name: Build
@@ -110,7 +107,7 @@ jobs:
110107
- name: Setup .NET
111108
uses: actions/setup-dotnet@v4
112109
with:
113-
dotnet-version: ${{ env.DOTNET_VERSION }}
110+
global-json-file: global.json
114111

115112
- name: Restore tools
116113
run: dotnet tool restore

0 commit comments

Comments
 (0)