Skip to content

Commit

Permalink
Adding alternative if statement as job otherwise does not really fail…
Browse files Browse the repository at this point in the history
… and hence black and isort are not being run

Signed-off-by: bvandekerkhof <[email protected]>
  • Loading branch information
bvandekerkhof committed Mar 11, 2024
1 parent 9f6c3d4 commit 8c3b36f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/code_formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ jobs:
pip install black
pip install isort
- name: Run isort, black checks
id: checks
continue-on-error: true
run: |
isort . --check
black . --check
- name: Run isort and black when required and commit back
if: failure()
if: job.steps.checks.status == failure()
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.OPENMCMC_TOKEN }}
run: |
Expand Down

0 comments on commit 8c3b36f

Please sign in to comment.