diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 3a9c110..8f9d0db 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -15,7 +15,10 @@ jobs: - name: Tool restore run: dotnet tool restore - name: Format Check - run: dotnet fantomas . --check || echo "The code was not formatted, run `dotnet fantomas .` to format all code." + run: dotnet fantomas . --check + - name: log format failure + if: failure() + run: echo "The code was not formatted, run `dotnet fantomas .` to format all code." - name: Restore run: dotnet restore - name: Run Build