Skip to content

Commit 4eb7aea

Browse files
authored
two commits in each push
1 parent 8d994ab commit 4eb7aea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/black.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@ jobs:
2828
- name: Format all py files using black
2929
run: |
3030
black $(git ls-files '*.py')
31-
git status -s
31+
- name: Commit changes
32+
run: |
33+
git config --local user.email "[email protected]"
34+
git config --local user.name "GitHub Action"
35+
git add .
36+
git diff-index --quiet HEAD || git commit -m "Format Python code with Black"
37+
- name: Push changes
38+
run: |
39+
git push origin master

0 commit comments

Comments
 (0)