Skip to content

Commit 8280a39

Browse files
committed
auto-fix
1 parent 9c997f9 commit 8280a39

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
@@ -11,7 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
1416
- uses: actions/setup-python@v3
1517
- uses: pre-commit/[email protected]
1618
with:
1719
extra_args: --all-files
20+
- name: Push changes back to repo
21+
if: ${{ steps.pre-commit.outcome == 'failure' }}
22+
run: |
23+
git config --global user.name "github-actions[bot]"
24+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
25+
git add .
26+
git commit -m "style: auto format code with pre-commit"
27+
git push

0 commit comments

Comments
 (0)