Skip to content

Commit

Permalink
Use a CI-only global.json to stick to .NET SDK 6
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Aug 16, 2023
1 parent 511d189 commit 49851f3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/.global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "6.0.300",
"rollForward": "latestMinor"
}
}
4 changes: 4 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
fetch-depth: 0
submodules: true

- name: Replace global.json
run: cp .github/workflows/.global.json global.json
shell: bash

- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
fetch-depth: 0
submodules: true

- name: Replace global.json
run: cp .github/workflows/.global.json global.json
shell: bash

- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
Expand Down

0 comments on commit 49851f3

Please sign in to comment.