Skip to content

Commit e15822d

Browse files
authored
Use global.json dotnet version for actions (#3722)
1 parent 278d482 commit e15822d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/GenerateAsyncCode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup .NET
2222
uses: actions/setup-dotnet@v5
2323
with:
24-
dotnet-version: 8.0.x
24+
global-json-file: global.json
2525

2626
- name: Generate Async code
2727
run: |

.github/workflows/NetCoreTests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ jobs:
6363
- name: Set up ${{matrix.DB}}
6464
run: ${{matrix.DB_INIT}}
6565

66-
- name: Set up .NET
67-
uses: actions/setup-dotnet@v5
68-
with:
69-
dotnet-version: 8.0.x
70-
7166
- name: Checkout
7267
uses: actions/checkout@v5
7368
with:
7469
show-progress: false
7570

71+
- name: Set up .NET
72+
uses: actions/setup-dotnet@v5
73+
with:
74+
global-json-file: global.json
75+
7676
- name: Build and Test
7777
run: |
7878
pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{'Database' = '${{matrix.DB}}';'ConnectionString'='${{matrix.CONNECTION_STRING}}'}"

0 commit comments

Comments
 (0)