Skip to content

Commit 97267e2

Browse files
committed
GitHubCI: use env var for .NET version
This way it doesn't get repeated in each job.
1 parent f212763 commit 97267e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
DOTNET_VERSION: '6.0.428'
9+
710
jobs:
811
buildAndTestWindows:
912

@@ -15,7 +18,7 @@ jobs:
1518
- name: Setup .NET
1619
uses: actions/setup-dotnet@v3
1720
with:
18-
dotnet-version: 6.0.428
21+
dotnet-version: ${{ env.DOTNET_VERSION }}
1922
- name: Build & Run Tests
2023
run: |
2124
.\build.cmd
@@ -40,7 +43,7 @@ jobs:
4043
- name: Setup .NET
4144
uses: actions/setup-dotnet@v3
4245
with:
43-
dotnet-version: 6.0.428
46+
dotnet-version: ${{ env.DOTNET_VERSION }}
4447
- name: Build & Run Tests
4548
run: |
4649
./build.sh
@@ -65,7 +68,7 @@ jobs:
6568
- name: Setup .NET
6669
uses: actions/setup-dotnet@v3
6770
with:
68-
dotnet-version: 6.0.428
71+
dotnet-version: ${{ env.DOTNET_VERSION }}
6972
- name: Build & Run Tests
7073
run: |
7174
./build.sh

0 commit comments

Comments
 (0)