From: Patrick Donnelly Date: Fri, 10 Jul 2026 20:40:47 +0000 (-0400) Subject: .github/workflows/releng-audit: keep failed state on other label events X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e83c663c47a9ab93704ec54b9529f2b3883b7ffa;p=ceph.git .github/workflows/releng-audit: keep failed state on other label events Signed-off-by: Patrick Donnelly --- diff --git a/.github/workflows/releng-audit.yaml b/.github/workflows/releng-audit.yaml index 6112b9ded6e..4cbcfaa039d 100644 --- a/.github/workflows/releng-audit.yaml +++ b/.github/workflows/releng-audit.yaml @@ -228,7 +228,11 @@ jobs: } } - core.info(`[Router] Labeled event handled without triggering audit.`); + if (hasFailLabel && labelName !== 'releng-audit-override') { + core.setFailed("PR is currently in a failed audit state. Remove the releng-audit-fail label to re-run."); + } else { + core.info(`[Router] Labeled event handled without triggering audit.`); + } core.setOutput('run_audit', 'false'); return; } @@ -254,7 +258,11 @@ jobs: return; } - core.info('[Router] Event did not match any trigger criteria. Skipping audit.'); + if (hasFailLabel && eventName === 'pull_request_target') { + core.setFailed("PR is currently in a failed audit state. Remove the releng-audit-fail label to re-run."); + } else { + core.info('[Router] Event did not match any trigger criteria. Skipping audit.'); + } core.setOutput('run_audit', 'false'); - name: Checkout Trusted Base Repository