[CI] Only run GitHub Actions on the main repo (#55349)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Harry Mellor committed
Sep 4, 2026 at 17:09 UTC
5e729d84eb4c91411172f2245c37cf05579ea5b9
10 files changed
+14
-5
.github/workflows/add_label_automerge.yml
+1
@@ -7,6 +7,7 @@ on:
7
- auto_merge_enabled
8
jobs:
9
add-label-on-auto-merge:
10
+ if: github.repository_owner == 'vllm-project'
11
runs-on: [self-hosted, linux, x64, vllm-runners]
12
steps:
13
- name: Add label
.github/workflows/buf.yml
+1
@@ -21,6 +21,7 @@ concurrency:
21
22
jobs:
23
proto:
24
+ if: github.repository_owner == 'vllm-project'
25
runs-on: ubuntu-latest
26
steps:
27
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
.github/workflows/issue_autolabel.yml
+1
@@ -10,6 +10,7 @@ concurrency:
10
cancel-in-progress: true
11
jobs:
12
add-labels:
13
+ if: github.repository_owner == 'vllm-project'
14
runs-on: ubuntu-latest
15
steps:
16
- name: Label issues based on keywords
.github/workflows/macos-smoke-test.yml
+1
@@ -11,6 +11,7 @@ permissions:
11
12
jobs:
13
macos-m1-smoke-test:
14
+ if: github.repository_owner == 'vllm-project'
15
# macos-26 (the supported target) is still a preview runner, so gate on GA
16
# macos-15 and keep macos-26 non-blocking.
17
strategy:
.github/workflows/new_pr_bot.yml
+2
@@ -9,6 +9,7 @@ permissions:
9
10
jobs:
11
update-description:
12
+ if: github.repository_owner == 'vllm-project'
13
runs-on: ubuntu-latest
14
steps:
15
- name: Update PR description
@@ -52,6 +53,7 @@ jobs:
53
}
54
55
reminder-comment:
56
+ if: github.repository_owner == 'vllm-project'
57
runs-on: ubuntu-latest
58
steps:
59
- name: Post welcome comment for first-time contributors
.github/workflows/notify-ci-authorized.yml
+3
-2
@@ -24,13 +24,14 @@ permissions:
24
jobs:
25
notify:
26
if: >-
27
- (github.event_name == 'pull_request_target' &&
27
+ github.repository_owner == 'vllm-project' &&
28
+ ((github.event_name == 'pull_request_target' &&
29
github.event.action == 'labeled' &&
30
(github.event.label.name == 'ready' ||
31
github.event.label.name == 'ready-run-all-tests')) ||
32
(github.event_name == 'workflow_run' &&
33
github.event.workflow_run.event == 'pull_request_review' &&
33
- github.event.workflow_run.conclusion == 'success')
34
+ github.event.workflow_run.conclusion == 'success'))
35
runs-on: [self-hosted, linux, x64, vllm-runners]
36
steps:
37
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
.github/workflows/pr-title.yml
+1
@@ -20,6 +20,7 @@ jobs:
20
# - A draft PR with the `ready` label is marked ready for review.
21
# - New commits are pushed to a ready PR (so its latest commit has a title check status).
22
if: >-
23
+ github.repository_owner == 'vllm-project' &&
24
github.event.pull_request.draft == false &&
25
contains(github.event.pull_request.labels.*.name, 'ready') &&
26
(github.event.action != 'labeled' || github.event.label.name == 'ready') &&
.github/workflows/pre-commit.yml
+2
-2
@@ -16,7 +16,7 @@ permissions:
16
17
jobs:
18
pre-run-check:
19
- if: github.event_name == 'pull_request'
19
+ if: github.repository_owner == 'vllm-project' && github.event_name == 'pull_request'
20
runs-on: [self-hosted, linux, x64, vllm-runners]
21
steps:
22
- name: Check PR label and author merge count
@@ -46,7 +46,7 @@ jobs:
46
47
pre-commit:
48
needs: pre-run-check
49
- if: always() && (needs.pre-run-check.result == 'success' || needs.pre-run-check.result == 'skipped')
49
+ if: github.repository_owner == 'vllm-project' && always() && (needs.pre-run-check.result == 'success' || needs.pre-run-check.result == 'skipped')
50
runs-on: [self-hosted, linux, x64, vllm-runners]
51
steps:
52
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
.github/workflows/record-ci-approval.yml
+1
-1
@@ -8,7 +8,7 @@ permissions: {}
8
9
jobs:
10
approved:
11
- if: github.event.review.state == 'approved'
11
+ if: github.repository_owner == 'vllm-project' && github.event.review.state == 'approved'
12
runs-on: [self-hosted, linux, x64, vllm-runners]
13
steps:
14
- run: echo "Approval recorded"
.github/workflows/run-ci-command.yml
+1
@@ -16,6 +16,7 @@ permissions:
16
jobs:
17
run-ci-command:
18
if: >-
19
+ github.repository_owner == 'vllm-project' &&
20
github.event.issue.pull_request &&
21
(github.event.comment.body == '/ci run' ||
22
github.event.comment.body == '/ci run all' ||