Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df3aa91

Browse files
authoredMay 19, 2024
Update pre-commit.yml
1 parent 6de202c commit df3aa91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎.github/workflows/pre-commit.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,13 @@ jobs:
2121
2222
- name: Run pre-commit
2323
run: pre-commit run --all-files
24+
- name: Commit and push changes
25+
if: github.event_name == 'push'
26+
run: |
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
29+
git add .
30+
git commit -m "Apply pre-commit fixes"
31+
git push
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.