ci/github-script/check-target-branch: fix kernel exemption logic (#487799)

This commit is contained in:
Michael Daniels
2026-02-07 00:17:02 +00:00
committed by GitHub
+5 -1
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 = [