Skip to content

Commit

Permalink
Add changes to push ruff fix changes when found.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjcioffi committed Aug 16, 2024
1 parent bff058c commit b31d9dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
ruff check --exclude=ecommerce/settings --exclude=store/migrations --fix
ruff format --exclude=store/migrations store ecommerce
- name: Check for changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Apply Ruff fixes"
git push origin HEAD:${{ github.ref }}
else
echo "No changes to commit"
fi
test:
runs-on: ubuntu-latest

Expand Down

0 comments on commit b31d9dd

Please sign in to comment.