Skip to content

Commit 4d91fe0

Browse files
committed
fix: Do not attempt to push if no formatting necessary
1 parent c5b0098 commit 4d91fe0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/black.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ jobs:
1919

2020
- name: Commit changes
2121
run: |
22+
if git diff-files --quiet; then
23+
echo "No changes"
24+
exit 0
25+
fi
26+
2227
git config --global user.name 'sentry-bot'
2328
git config --global user.email '[email protected]'
29+
2430
git commit -am "fix: Formatting"
2531
git push

0 commit comments

Comments
 (0)