Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Auto-fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Mar 1, 2024
1 parent ac5171b commit c00e4dd
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx run pre-commit run --all-files --show-diff-on-failure
- id: run-pre-commit
run: pipx run pre-commit run --all-files
- id: generate-token
if: ${{ failure() && steps.run-pre-commit.conclusion == 'failure' }}
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- if: ${{ failure() && steps.run-pre-commit.conclusion == 'failure' }}
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Run pre-commit
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: pre-commit/${{ github.ref_name }}
delete-branch: true
title: Run pre-commmit
body:
build:
strategy:
matrix:
Expand Down

0 comments on commit c00e4dd

Please sign in to comment.