From 5921f3ca78de086aa46418642d8b4c7dfbb42abd Mon Sep 17 00:00:00 2001 From: LilSpazJoekp <15524072+LilSpazJoekp@users.noreply.github.com> Date: Sun, 27 Mar 2022 16:48:27 -0500 Subject: [PATCH] Make pre-commit autoupdate action open a PR even if hooks fails (cherry picked from commit praw-dev/praw@247851b819dff275c44c5c2444218233fba073cf) --- .github/workflows/pre-commit_autoupdate.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pre-commit_autoupdate.yml b/.github/workflows/pre-commit_autoupdate.yml index ca58456d..9612d1a5 100644 --- a/.github/workflows/pre-commit_autoupdate.yml +++ b/.github/workflows/pre-commit_autoupdate.yml @@ -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"