Skip to content

Commit 97cc0f7

Browse files
committed
Fix formatting action
1 parent e9eb623 commit 97cc0f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/format.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
run: pip install black
2323
- name: If needed, commit black changes to the pull request
2424
run: |
25-
if black --check . ; then
25+
if black --check .
26+
then
2627
black .
2728
git config --global user.name 'formatting'
2829
git config --global user.email 'mikeheddes@users.noreply.github.com'
@@ -31,5 +32,5 @@ jobs:
3132
git commit -am "Format Python code"
3233
git push
3334
else
34-
exit 0
35+
echo "nothing to do"
3536
fi

0 commit comments

Comments
 (0)