Skip to content

Commit 7f977df

Browse files
authored
fixing black actions
1 parent f520202 commit 7f977df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/black.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
git config --local user.name "${{ github.actor }}"
3535
if [ "$(git ls-files --modified '*.py' | wc -l)" -ne 0 ]; then
3636
git stash -u
37-
git stash drop
3837
git add --all
3938
message="$(git log -1 --pretty=%B) Format Python code with Black"
4039
git commit -m "$message"
4140
git push origin master
42-
fi
41+
fi
42+
if [ "$(git ls-files --staged '*.py' | wc -l)" -ne 0 ]; then
43+
git stash drop
44+
fi

0 commit comments

Comments
 (0)