Skip to content

Commit 75d6662

Browse files
Install .NET SDK (#221)
Explicitly install the .NET SDK so the version is deterministic and not dependent on whatever version is installed on the GitHub Actions runner.
1 parent 5533596 commit 75d6662

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/dotnet-format.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ jobs:
1818
permissions: {}
1919

2020
steps:
21-
- name: check out code
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21+
22+
- name: Checkout code
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2324
with:
24-
persist-credentials: false
25+
fetch-depth: 0
26+
filter: 'tree:0'
27+
show-progress: false
28+
29+
- name: Setup .NET SDK
30+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2531

26-
- name: dotnet format
32+
- name: Run dotnet format
2733
run: dotnet format --verify-no-changes

0 commit comments

Comments
 (0)