Skip to content

Commit 761401e

Browse files
committed
add dotnet-format problem matcher
1 parent eb2ec13 commit 761401e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/format.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111

12-
# workaround for dotnet tools not being on path https://github.com/actions/virtual-environments/issues/213
13-
- name: add .dotnet/tools to path
14-
run: echo "::set-env name=PATH::${PATH}:${HOME}/.dotnet/tools"
15-
1612
- run: dotnet tool install -g dotnet-format
1713

18-
- run: dotnet format --folder ./ --dry-run --check
14+
- name: Add dotnet-format problem matcher
15+
uses: xt0rted/dotnet-format-problem-matcher@v1
16+
17+
- name: Run dotnet format
18+
uses: xt0rted/dotnet-format@v1
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)