Skip to content

Commit

Permalink
fix: patch workflows (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker committed Sep 9, 2024
1 parent a116b54 commit 6621486
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/black_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ jobs:
- name: Auto-fix with Black and commit
if: steps.black.outcome == 'failure' || ${{ !contains(github.event.issue.labels.*.name, 'check-only') }}
run: |
black .
poetry run black .
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "Apply Black formatting" || echo "No changes to commit"
git push
- name: Error if 'check-only' label is present
if: steps.black.outcome == 'failure' && contains(github.event.issue.labels.*.name, 'check-only')
run: echo "Black formatting check failed. Please run 'black .' locally to fix formatting issues." && exit 1


0 comments on commit 6621486

Please sign in to comment.