Skip to content

Commit df9652f

Browse files
committed
fix globaljson nonsense
1 parent b794214 commit df9652f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,19 @@ jobs:
7171

7272
# setup .NET per test session
7373
- name: Setup .NET
74+
id : setup-dotnet
7475
uses: actions/setup-dotnet@v3
7576
with:
76-
include-prerelease: ${{ matrix.include-prerelease }}
7777
global-json-file: ${{ matrix.global-json-file }}
7878
dotnet-version: ${{ matrix.dotnet-version }}
7979

8080
# remove global.json so that the env configuration takes precedence
8181
- name: Purge global.json
8282
run: rm global.json
8383

84+
- name: Create global.json
85+
run: dotnet new globaljson --sdk-version '${{ steps.setup-dotnet.outputs.dotnet-version }}' --roll-forward latestMinor
86+
8487
# let's make sure we're on the version we think we are.
8588
- name: Announce .NET version
8689
run: dotnet --info

0 commit comments

Comments
 (0)