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 ae21035 commit f520202Copy full SHA for f520202
.github/workflows/black.yml
@@ -28,17 +28,15 @@ jobs:
28
- name: Format all py files using black
29
run: |
30
black $(git ls-files '*.py')
31
- - name: Commit changes
+ - name: Commit and push changes
32
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 stash drop
38
- git add .
+ git add --all
39
message="$(git log -1 --pretty=%B) Format Python code with Black"
40
git commit -m "$message"
41
- fi
42
- - name: Push changes
43
- run: |
44
- git push origin master
+ git push origin master
+ fi
0 commit comments