[CI] Only run GitHub Actions on the main repo (#55349)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-09-05 00:09:49 +08:00
committed by GitHub
parent f19431e5c8
commit 5e729d84eb
10 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ permissions:
jobs:
pre-run-check:
if: github.event_name == 'pull_request'
if: github.repository_owner == 'vllm-project' && github.event_name == 'pull_request'
runs-on: [self-hosted, linux, x64, vllm-runners]
steps:
- name: Check PR label and author merge count
@@ -46,7 +46,7 @@ jobs:
pre-commit:
needs: pre-run-check
if: always() && (needs.pre-run-check.result == 'success' || needs.pre-run-check.result == 'skipped')
if: github.repository_owner == 'vllm-project' && always() && (needs.pre-run-check.result == 'success' || needs.pre-run-check.result == 'skipped')
runs-on: [self-hosted, linux, x64, vllm-runners]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0