[CI] Skip stage health check for release branch cut (#21488)

This commit is contained in:
Liangsheng Yin
2026-03-26 12:54:51 -07:00
committed by GitHub
parent 4b5f63e1b8
commit 17f43d1518
6 changed files with 33 additions and 0 deletions
@@ -12,9 +12,17 @@ runs:
steps:
- name: Check stage health
uses: actions/github-script@v7
env:
SKIP_STAGE_HEALTH_CHECK: ${{ env.SKIP_STAGE_HEALTH_CHECK }}
with:
github-token: ${{ inputs.github-token }}
script: |
// Skip when explicitly requested via env var (e.g. release branch cut)
if (process.env.SKIP_STAGE_HEALTH_CHECK === 'true') {
core.info('Skipping health check (SKIP_STAGE_HEALTH_CHECK=true)');
return;
}
// Skip for scheduled runs — they should collect all failures, not fast-fail
if (context.eventName === 'schedule') {
core.info('Skipping health check for scheduled run');