From 02b40317841f7027edc1f790a3db53e307c876ec Mon Sep 17 00:00:00 2001 From: Chris Huber Date: Sun, 22 Mar 2026 23:50:45 +0000 Subject: [PATCH] fix(ci): auto-refactor should run even when quality gates fail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-refactor was gated on gate-test succeeding, but tests depend on lint which depends on audit. Since audit always fails (868 findings), the entire chain was skipped — auto-refactor never ran. Fix: gate auto-refactor only on the build succeeding (needs the binary) and check saying there's something to release. List all quality gate jobs in needs so it waits for them to complete, but use always() so it runs regardless of their results. The whole point of auto-refactor is to fix what the quality gates found. --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ee2ea0f..efcc6b63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -240,9 +240,10 @@ jobs: needs: - check - gate-build + - gate-audit + - gate-lint - gate-test - - prepare - if: ${{ always() && needs.gate-test.result == 'success' }} + if: ${{ always() && needs.check.outputs.should-release == 'true' && needs.gate-build.result == 'success' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4