diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 89ed4c58ec2..b963a5f62ac 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -7,7 +7,8 @@ name: codestyle on: push: branches: - - master + - "*" + pull_request_target: branches: - master @@ -58,10 +59,10 @@ jobs: cache-downloads: true - name: Show statistics - run: ruff check --statistics --show-fixes $(git --no-pager diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} --) | tee ruff_stats.txt + run: ruff check --statistics --show-fixes $(git --no-pager diff --name-only origin/master HEAD --) | tee ruff_stats.txt - name: Show entire output - run: ruff check --output-format=concise $(git --no-pager diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} --) | tee ruff_full.txt + run: ruff check --output-format=concise $(git --no-pager diff --name-only origin/master HEAD --) | tee ruff_full.txt - name: Statistics output read id: ruff_stats