Skip to content

Commit

Permalink
update ruff.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jul 11, 2024
1 parent 7d461aa commit 2b52dbd
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,17 @@ jobs:
run: |
ruff check . --fix --exit-zero
git add -u
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
exit 1
else
git status
fi
git status
- name: Commit and push changes
if: success()
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Auto-format code using ruff"
git push origin ${{ github.ref }}
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
else
git commit -m "Auto-format code using ruff"
git push origin ${{ github.ref }}
fi
env:
GITHUB_TOKEN: ${{ secrets.GX_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GX_TOKEN }}

0 comments on commit 2b52dbd

Please sign in to comment.