Skip to content

Commit 0e0fcfb

Browse files
committed
Remove dotnet SDK version from CI (use global.json) (#3486)
(cherry picked from commit 86e9948)
1 parent 9c747fd commit 0e0fcfb

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
pull_request:
1212

1313
env:
14-
dotnet_sdk_version: '8.0.406'
1514
postgis_version: 3
1615
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1716

@@ -43,9 +42,7 @@ jobs:
4342
uses: actions/checkout@v4
4443

4544
- name: Setup .NET Core SDK
46-
uses: actions/setup-dotnet@v3
47-
with:
48-
dotnet-version: ${{ env.dotnet_sdk_version }}
45+
uses: actions/setup-dotnet@v4
4946

5047
- name: Build
5148
run: dotnet build --configuration Debug
@@ -152,9 +149,7 @@ jobs:
152149
uses: actions/checkout@v4
153150

154151
- name: Setup .NET Core SDK
155-
uses: actions/setup-dotnet@v3
156-
with:
157-
dotnet-version: ${{ env.dotnet_sdk_version }}
152+
uses: actions/setup-dotnet@v4
158153

159154
- name: Pack
160155
run: dotnet pack --configuration Release --property:PackageOutputPath="$PWD/nupkgs" --version-suffix "ci.$(date -u +%Y%m%dT%H%M%S)+sha.${GITHUB_SHA:0:9}" -p:ContinuousIntegrationBuild=true
@@ -186,9 +181,7 @@ jobs:
186181
uses: actions/checkout@v4
187182

188183
- name: Setup .NET Core SDK
189-
uses: actions/setup-dotnet@v3
190-
with:
191-
dotnet-version: ${{ env.dotnet_sdk_version }}
184+
uses: actions/setup-dotnet@v4
192185

193186
- name: Pack
194187
run: dotnet pack --configuration Release --property:PackageOutputPath="$PWD/nupkgs" -p:ContinuousIntegrationBuild=true

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ on:
2626
schedule:
2727
- cron: '30 22 * * 6'
2828

29-
env:
30-
dotnet_sdk_version: '8.0.406'
31-
3229
jobs:
3330
analyze:
3431
name: Analyze
@@ -60,9 +57,7 @@ jobs:
6057
# queries: ./path/to/local/query, your-org/your-repo/queries@main
6158

6259
- name: Setup .NET Core SDK
63-
uses: actions/setup-dotnet@v3.0.3
64-
with:
65-
dotnet-version: ${{ env.dotnet_sdk_version }}
60+
uses: actions/setup-dotnet@v4
6661

6762
- name: Build
6863
run: dotnet build -c Release

0 commit comments

Comments
 (0)