Skip to content

Commit f520202

Browse files
authored
update actions
1 parent ae21035 commit f520202

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/black.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ jobs:
2828
- name: Format all py files using black
2929
run: |
3030
black $(git ls-files '*.py')
31-
- name: Commit changes
31+
- name: Commit and push changes
3232
run: |
3333
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
3434
git config --local user.name "${{ github.actor }}"
3535
if [ "$(git ls-files --modified '*.py' | wc -l)" -ne 0 ]; then
3636
git stash -u
3737
git stash drop
38-
git add .
38+
git add --all
3939
message="$(git log -1 --pretty=%B) Format Python code with Black"
4040
git commit -m "$message"
41-
fi
42-
- name: Push changes
43-
run: |
44-
git push origin master
41+
git push origin master
42+
fi

0 commit comments

Comments
 (0)