Skip to content

Commit 8d994ab

Browse files
authored
checking black modified
1 parent 7f977df commit 8d994ab

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/black.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,4 @@ jobs:
2828
- name: Format all py files using black
2929
run: |
3030
black $(git ls-files '*.py')
31-
- name: Commit and push changes
32-
run: |
33-
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
34-
git config --local user.name "${{ github.actor }}"
35-
if [ "$(git ls-files --modified '*.py' | wc -l)" -ne 0 ]; then
36-
git stash -u
37-
git add --all
38-
message="$(git log -1 --pretty=%B) Format Python code with Black"
39-
git commit -m "$message"
40-
git push origin master
41-
fi
42-
if [ "$(git ls-files --staged '*.py' | wc -l)" -ne 0 ]; then
43-
git stash drop
44-
fi
31+
git status -s

0 commit comments

Comments
 (0)