From 4ef8ece08ab35acbfab7908888e416c3c15878ac Mon Sep 17 00:00:00 2001 From: Douglas Yang Date: Sun, 15 Feb 2026 07:28:43 -0800 Subject: [PATCH] feature: adding build commit to sgl kernel workflow (#18853) --- .github/workflows/release-whl-kernel.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release-whl-kernel.yml b/.github/workflows/release-whl-kernel.yml index ae2393b18..e07cad866 100644 --- a/.github/workflows/release-whl-kernel.yml +++ b/.github/workflows/release-whl-kernel.yml @@ -11,6 +11,10 @@ on: tag_name: type: string required: false + pr_number: + description: "PR number to build from (e.g. 12345)" + type: string + required: false concurrency: group: release-sglang-kernels-${{ github.ref }} @@ -34,6 +38,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: "recursive" + ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -66,6 +71,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }} - name: Download artifacts uses: actions/download-artifact@v4 @@ -128,6 +135,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: "recursive" + ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -154,6 +162,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }} - name: Download artifacts uses: actions/download-artifact@v4 @@ -209,6 +219,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: "recursive" + ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -233,6 +244,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }} - name: Download artifacts uses: actions/download-artifact@v4