We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c997f9 commit 8280a39Copy full SHA for 8280a39
.github/workflows/pre-commit.yml
@@ -11,7 +11,17 @@ jobs:
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v4
14
+ with:
15
+ token: ${{ secrets.GITHUB_TOKEN }}
16
- uses: actions/setup-python@v3
17
- uses: pre-commit/[email protected]
18
with:
19
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