diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 757820718..803e9ba88 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -22,8 +22,6 @@ concurrency: env: DOTNET_VERSION: 6.0 DOTNET_LEGACY_VERSION: 4.7.1 - # uncomment to run the tests sequentially - #SEQUENTIAL_ENV: SEQUENTIAL_TEST_RUN jobs: run-linter: @@ -36,11 +34,16 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: "6.0.x" + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v43 - name: Run linters uses: wearerequired/lint-action@v2 + env: + ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} with: + dotnet_format_args: "--include ${{ALL_CHANGED_FILES}}" dotnet_format: true continue_on_error: false github_token: ${{ secrets.GITHUB_TOKEN }} - check_name: ${linter} run - auto_fix: true \ No newline at end of file + check_name: ${linter} run \ No newline at end of file