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

Commit 9905156

Browse files
authored
One last time!
1 parent e4a3b7e commit 9905156

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/black.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,16 @@ jobs:
2727
- name: Run Black Formatter
2828
id: action_black
2929
run: |
30-
black package/ tests/
31-
git diff --exit-code || echo "Files have been formatted by Black."
30+
black package/ tests/ || echo "Black found formatting issues!"
3231
3332
- name: Check for changes
3433
id: check_changes
3534
run: |
3635
git diff --exit-code || echo "Changes detected."
37-
git status # Add this to show the current status
36+
echo "changes=true" >> $GITHUB_ENV # Set an environment variable for changes
3837
3938
- name: Commit and push changes
40-
if: steps.action_black.outcome == 'success' && steps.check_changes.outputs.changes != ''
39+
if: steps.action_black.outcome == 'success' && env.changes == 'true' # Change this line
4140
env:
4241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4342
run: |

0 commit comments

Comments
 (0)