From 418fcab50d1d5df37dc7bdb38b4c88ee2b8bdd24 Mon Sep 17 00:00:00 2001 From: Baizhou Zhang Date: Thu, 2 Apr 2026 22:46:28 -0700 Subject: [PATCH] [Workflow] Fix kernel release jobs skipped on push events The build jobs' `if` conditions only checked `github.event.inputs.target`, which is null for push events (only set for workflow_dispatch). This caused all jobs to be skipped when the workflow was triggered by a push to main. Add `github.event_name == 'push'` to each build job's condition so they run for both push and workflow_dispatch triggers. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release-whl-kernel.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-whl-kernel.yml b/.github/workflows/release-whl-kernel.yml index 03f4abf8ff8e..bdf0b0360ee2 100644 --- a/.github/workflows/release-whl-kernel.yml +++ b/.github/workflows/release-whl-kernel.yml @@ -36,7 +36,7 @@ jobs: build-cu129-matrix: if: | github.repository == 'sgl-project/sglang' && - (github.event.inputs.target == 'all' || github.event.inputs.target == 'cu129') + (github.event_name == 'push' || github.event.inputs.target == 'all' || github.event.inputs.target == 'cu129') strategy: matrix: python-version: ["3.10"] @@ -135,7 +135,7 @@ jobs: build-cu130-matrix: if: | github.repository == 'sgl-project/sglang' && - (github.event.inputs.target == 'all' || github.event.inputs.target == 'cu130') + (github.event_name == 'push' || github.event.inputs.target == 'all' || github.event.inputs.target == 'cu130') strategy: matrix: python-version: ["3.10"] @@ -227,7 +227,7 @@ jobs: build-rocm-matrix: if: | github.repository == 'sgl-project/sglang' && - (github.event.inputs.target == 'all' || github.event.inputs.target == 'rocm700' || github.event.inputs.target == 'rocm720') + (github.event_name == 'push' || github.event.inputs.target == 'all' || github.event.inputs.target == 'rocm700' || github.event.inputs.target == 'rocm720') runs-on: amd-docker-scale strategy: matrix: @@ -362,7 +362,7 @@ jobs: build-musa43: if: | github.repository == 'sgl-project/sglang' && - (github.event.inputs.target == 'all' || github.event.inputs.target == 'musa43') + (github.event_name == 'push' || github.event.inputs.target == 'all' || github.event.inputs.target == 'musa43') runs-on: kernel-build-node-musa strategy: matrix: