We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f520202 commit 7f977dfCopy full SHA for 7f977df
.github/workflows/black.yml
@@ -34,9 +34,11 @@ jobs:
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 stash drop
38
git add --all
39
message="$(git log -1 --pretty=%B) Format Python code with Black"
40
git commit -m "$message"
41
git push origin master
42
- fi
+ fi
+ if [ "$(git ls-files --staged '*.py' | wc -l)" -ne 0 ]; then
43
+ git stash drop
44
0 commit comments