Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
updating for github bot
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyaash authored Oct 30, 2024
1 parent cbf3cfa commit 51bc1f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:

- name: Run Black Formatter
id: action_black
run: black package/ tests/ || echo "Black found formatting issues!"
run: |
black package/ tests/
git diff --exit-code || echo "Black found formatting issues!" # This will allow us to check if files have changed.
- name: Commit and push changes
if: ${{ steps.action_black.outcome == 'success' }}
if: steps.action_black.outcome == 'success' && git diff --exit-code
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit 51bc1f5

Please sign in to comment.