From: Patrick Donnelly Date: Thu, 14 May 2026 23:59:47 +0000 (-0400) Subject: .github/workflows/releng-audit: handle missing case of skipping audit on override X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=31bc2a735dc7ee264464cb89df64bd8d48da0522;p=ceph.git .github/workflows/releng-audit: handle missing case of skipping audit on override If someone adds -fail/-pass and override exists, the label should be removed and -override respected. Signed-off-by: Patrick Donnelly --- diff --git a/.github/workflows/releng-audit.yaml b/.github/workflows/releng-audit.yaml index c1e1845d8acd..08741378c15f 100644 --- a/.github/workflows/releng-audit.yaml +++ b/.github/workflows/releng-audit.yaml @@ -180,10 +180,17 @@ jobs: // Block humans from applying machine labels if (!isBot && (labelName === 'releng-audit-pass' || labelName === 'releng-audit-fail')) { - core.warning(`[Router] User @${actor} cannot manually apply ${labelName}. Stripping labels and forcing audit.`); + core.warning(`[Router] User @${actor} cannot manually apply ${labelName}.`); try { await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, name: 'releng-audit-fail' }); } catch (e) {} try { await github.rest.issues.removeLabel({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, name: 'releng-audit-pass' }); } catch (e) {} - core.setOutput('run_audit', 'true'); + + if (hasOverrideLabel) { + core.info(`[Router] override label applied, skipping audit.`); + core.setOutput('run_audit', 'false'); + } else { + core.info(`[Router] forcing audit.`); + core.setOutput('run_audit', 'true'); + } return; }