Skip to content

Commit

Permalink
Update black.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DHANUSH N authored Mar 25, 2023
1 parent 53a98d7 commit 1befaca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
- name: Auto-format with Black
run: black .
- name: Commit changes
if: steps.git-check.outputs.changed == 'true'
run: |
if [[ -n $(git status -s) ]]; then
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add .
git commit -m "Auto-format with Black"
git push
else
echo "No changes to commit"
fi

0 comments on commit 1befaca

Please sign in to comment.