chores: refactor
This commit is contained in:
12
.github/workflows/linting.yaml
vendored
12
.github/workflows/linting.yaml
vendored
@@ -29,10 +29,8 @@ jobs:
|
||||
- name: Run pre-commit
|
||||
run: pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add .
|
||||
git commit -m "Fix linting issues" || echo "No changes to commit"
|
||||
git push
|
||||
- name: Commit lint changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "chore: apply linting and formatting"
|
||||
branch: ${{ github.head_ref }}
|
||||
|
||||
Reference in New Issue
Block a user