[CI/Build] Gate PR title check on ready PRs & use slim runners (#54827)

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Bugen Zhao
2026-09-01 23:12:00 +00:00
committed by GitHub
co-authored by Codex
parent e01d4acbb1
commit 80389cfedd
2 changed files with 18 additions and 2 deletions
+1
View File
@@ -5,3 +5,4 @@ self-hosted-runner:
- vllm-runners
# Not yet in actionlint's known-label set.
- macos-26
- ubuntu-slim
+17 -2
View File
@@ -2,14 +2,29 @@ name: PR title
on:
pull_request:
types: [opened, edited, reopened, synchronize]
types: [labeled, edited, reopened, ready_for_review, synchronize]
concurrency:
group: pr-title-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions: {}
jobs:
check-format:
name: Check format
runs-on: ubuntu-latest
# Triggered when:
# - The `ready` label is added.
# - A ready PR's title is edited.
# - A ready PR is reopened.
# - A draft PR with the `ready` label is marked ready for review.
# - New commits are pushed to a ready PR (so its latest commit has a title check status).
if: >-
github.event.pull_request.draft == false &&
contains(github.event.pull_request.labels.*.name, 'ready') &&
(github.event.action != 'labeled' || github.event.label.name == 'ready') &&
(github.event.action != 'edited' || github.event.changes.title != null)
runs-on: ubuntu-slim
steps:
- name: Validate title
env: