Skip to content

Commit

Permalink
Merge pull request #1857 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 Mar 27, 2022
2 parents a97cde2 + 247851b commit e16981d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/pre-commit_autoupdate.yml
Original file line number Diff line number Diff line change
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 e16981d

Please sign in to comment.