From d6efa6148d2d0440c830fc9bfefffaf326731064 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Fri, 7 Aug 2026 08:44:32 +0100 Subject: [PATCH] ci: fail lint job if prek fails Committed via https://github.com/asottile/all-repos --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab52c8900..431d82317 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,15 @@ jobs: ref: ${{ github.head_ref || github.ref }} - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 - uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0 + id: prek continue-on-error: true - uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0 + if: always() with: msg: "chore: auto-fix from pre-commit hooks" + - name: Fail if hooks failed + if: steps.prek.outcome == 'failure' + run: exit 1 test: runs-on: ${{ matrix.os }}