Adding nightly tests as release guard for bot bump workflows (#13655)
This commit is contained in:
@@ -10,6 +10,9 @@ permissions:
|
||||
jobs:
|
||||
bump-kernel-version-to-sglang:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
branch_name: ${{ steps.set_output.outputs.branch_name }}
|
||||
needs_sync: ${{ steps.check_sync.outputs.needs_sync }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -32,6 +35,7 @@ jobs:
|
||||
|
||||
- name: Configure Git and branch
|
||||
if: steps.check_sync.outputs.needs_sync == 'true'
|
||||
id: set_output
|
||||
run: |
|
||||
git config user.name "sglang-bot"
|
||||
git config user.email "sglang-bot@users.noreply.github.com"
|
||||
@@ -41,6 +45,7 @@ jobs:
|
||||
git checkout -b "$BRANCH_NAME"
|
||||
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
|
||||
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
|
||||
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Run kernel version bump script
|
||||
if: steps.check_sync.outputs.needs_sync == 'true'
|
||||
@@ -53,3 +58,11 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
||||
run: |
|
||||
bash scripts/release/commit_and_pr_kernel_to_sglang.sh "$KERNEL_VERSION" "$BRANCH_NAME"
|
||||
|
||||
run-nightly-tests:
|
||||
needs: bump-kernel-version-to-sglang
|
||||
if: needs.bump-kernel-version-to-sglang.outputs.needs_sync == 'true'
|
||||
uses: ./.github/workflows/nightly-test.yml
|
||||
with:
|
||||
ref: ${{ needs.bump-kernel-version-to-sglang.outputs.branch_name }}
|
||||
secrets: inherit
|
||||
|
||||
Reference in New Issue
Block a user