Skip to content

Commit

Permalink
Fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Aug 5, 2024
1 parent 2e58d51 commit b4c3a07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ name: codestyle
on:
push:
branches:
- master
- "*"

pull_request_target:
branches:
- master
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b4c3a07

Please sign in to comment.