Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fboundy committed Dec 22, 2024
1 parent b7e1068 commit b408e4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/black-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ jobs:
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
echo "Checking for changes..."
git status
if [ -n "$(git status --porcelain)" ]; then
echo "Changes detected. Adding and committing."
git add .
git commit -m "Automatically formatted code with Black and isort"
git push
else
echo "No changes to commit."
fi

0 comments on commit b408e4a

Please sign in to comment.