Skip to content

Commit f4de3ea

Browse files
authored
fix Action
1 parent b60c029 commit f4de3ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/black.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
run: |
3333
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
3434
git config --local user.name "${{ github.actor }}"
35-
git stash -u
35+
git diff-index --quiet HEAD || git stash -u
3636
black $(git ls-files '*.py')
37-
git stash pop
37+
git stash drop
3838
git add .
3939
message="$(git log -1 --pretty=%B) Format Python code with Black"
4040
git diff-index --quiet HEAD || git commit -m "$message"

0 commit comments

Comments
 (0)