Skip to content

Commit

Permalink
Merge pull request #200 from praw-dev/pre-commit_autoupdate
Browse files Browse the repository at this point in the history
Make pre-commit autoupdate action open a PR even if hooks fails
  • Loading branch information
LilSpazJoekp committed Oct 17, 2022
2 parents 8ffcb7a + 5921f3c commit dfbfb55
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/pre-commit_autoupdate.yml
Expand Up @@ -4,21 +4,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/cache@v1
with:
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }}
path: ~/.cache/pip
restore-keys: |
v0-${{ runner.os }}-pip-lint-
v0-${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- uses: browniebroke/pre-commit-autoupdate-action@main
- name: Update hooks
run: pre-commit autoupdate
- name: Run hooks
run: pre-commit run --all-files
continue-on-error: true
- uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
commit-message: "Update pre-commit hooks"
Expand Down

0 comments on commit dfbfb55

Please sign in to comment.