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 b60c029 commit f4de3eaCopy full SHA for f4de3ea
.github/workflows/black.yml
@@ -32,9 +32,9 @@ jobs:
32
run: |
33
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
34
git config --local user.name "${{ github.actor }}"
35
- git stash -u
+ git diff-index --quiet HEAD || git stash -u
36
black $(git ls-files '*.py')
37
- git stash pop
+ git stash drop
38
git add .
39
message="$(git log -1 --pretty=%B) Format Python code with Black"
40
git diff-index --quiet HEAD || git commit -m "$message"
0 commit comments