Skip to content

Commit

Permalink
add condition to apply fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Apr 16, 2024
1 parent 69d86b3 commit 5c2a9e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ruff-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ jobs:
uses: actions/checkout@v4

- name: Check with Ruff
id: ruff-check
uses: chartboost/ruff-action@v1
with:
src: './elephant'
args: 'format --check'
continue-on-error: true

- name: Fix with Ruff
uses: chartboost/ruff-action@v1
if : ${{ steps.ruff-check.outcome == 'failure' }}
with:
src: './elephant'
args: 'format --fix'
Expand Down

0 comments on commit 5c2a9e4

Please sign in to comment.