Skip to content

Commit

Permalink
Use a different github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Histalek committed Jun 24, 2021
1 parent 52854d9 commit c4a25c2
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,11 @@ jobs:
with:
dotnet-version: '3.1.x'

- name: Dotnet format annotations
uses: xt0rted/dotnet-format-problem-matcher@v1

- name: Setup dotnet-format tool
run: dotnet tool install -g dotnet-format

- name: Run dotnet format
run: dotnet format code/tttreborn-ci.csproj --report ${{ github.workspace }}/report.json --check

# Upload the analysis results file
- name: Upload analysis results
uses: actions/upload-artifact@v2
with:
name: report.json
path: ${{ github.workspace }}/report.json
if: ${{ always() }}

- name: Annotations from report.json
uses: yuzutech/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: annotations
input: ${{ github.workspace }}/report.json
if: ${{ always() }}
run: dotnet format code/tttreborn-ci.csproj --dry-run

0 comments on commit c4a25c2

Please sign in to comment.