diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1c028169..5a3ddda0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -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/annotations-action@v0.3.0 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - title: annotations - input: ${{ github.workspace }}/report.json - if: ${{ always() }} + run: dotnet format code/tttreborn-ci.csproj --dry-run