Skip to content

Commit 7e6d2c0

Browse files
Update dotnet-package.yml
1 parent 034c426 commit 7e6d2c0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/dotnet-package.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
dotnet: ['6.0.x', '7.0.x', '8.0.x']
14+
dotnet: [6, 7, 8, 9]
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818

1919
- name: Setup .NET
2020
uses: actions/setup-dotnet@v4
21+
id: setup-dotnet
2122
with:
2223
dotnet-version: ${{ matrix.dotnet }}
2324

25+
- name: Create temporary global.json
26+
run: echo '{"sdk":{"version": "${{ steps.setup-dotnet.outputs.dotnet-version }}"}}' > ./global.json
27+
2428
- name: Setup Node.js
2529
uses: actions/setup-node@v4
2630
with:

0 commit comments

Comments
 (0)