Skip to content

Commit 0585a01

Browse files
Install .NET SDK
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 0585a01

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/dotnet-format.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ 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
31+
id: setup-dotnet
2532

26-
- name: dotnet format
33+
- name: Run dotnet format
2734
run: dotnet format --verify-no-changes

0 commit comments

Comments
 (0)