Skip to content

Commit 775d8c1

Browse files
committed
create global.json in yml
1 parent 3c7b297 commit 775d8c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- name: Setup DotNet ${{ matrix.dotnet-version }} Environment
3232
uses: actions/setup-dotnet@v4
33+
id: setup-dotnet
3334
with:
3435
dotnet-version: ${{ matrix.dotnet-version }}
36+
- name: Create temporary global.json
37+
run: echo '{"sdk":{"version": "${{ steps.setup-dotnet.outputs.dotnet-version }}"}}' > ./global.json
3538
- name: Install dependencies
3639
run: dotnet restore
3740
- name: Build

0 commit comments

Comments
 (0)