ci/github-script/check-target-branch: fix kernel exemption logic

Erroneously failed to exempt because I left out an if condition.
This commit is contained in:
Michael Daniels 2026-02-06 18:59:41 -05:00
commit e3f053a65d
No known key found for this signature in database

View file

@ -122,7 +122,11 @@ async function checkTargetBranch({ github, context, core, dry }) {
].join('\n'),
)
if (maxRebuildCount >= 1000 && !isExemptHomeAssistantUpdate) {
if (
maxRebuildCount >= 1000 &&
!isExemptHomeAssistantUpdate &&
!isExemptKernelUpdate
) {
const desiredBranch =
base === 'master' ? 'staging' : `staging-${split(base).version}`
const body = [