Skip to content

Commit

Permalink
two commits in each push
Browse files Browse the repository at this point in the history
  • Loading branch information
arsho authored Feb 9, 2023
1 parent 8d994ab commit 4eb7aea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ jobs:
- name: Format all py files using black
run: |
black $(git ls-files '*.py')
git status -s
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "Format Python code with Black"
- name: Push changes
run: |
git push origin master

0 comments on commit 4eb7aea

Please sign in to comment.