[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:
@@ -7,6 +7,7 @@ on:
|
||||
- auto_merge_enabled
|
||||
jobs:
|
||||
add-label-on-auto-merge:
|
||||
if: github.repository_owner == 'vllm-project'
|
||||
runs-on: [self-hosted, linux, x64, vllm-runners]
|
||||
steps:
|
||||
- name: Add label
|
||||
|
||||
@@ -21,6 +21,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
proto:
|
||||
if: github.repository_owner == 'vllm-project'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
@@ -10,6 +10,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
add-labels:
|
||||
if: github.repository_owner == 'vllm-project'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Label issues based on keywords
|
||||
|
||||
@@ -11,6 +11,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
macos-m1-smoke-test:
|
||||
if: github.repository_owner == 'vllm-project'
|
||||
# macos-26 (the supported target) is still a preview runner, so gate on GA
|
||||
# macos-15 and keep macos-26 non-blocking.
|
||||
strategy:
|
||||
|
||||
@@ -9,6 +9,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
update-description:
|
||||
if: github.repository_owner == 'vllm-project'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update PR description
|
||||
@@ -52,6 +53,7 @@ jobs:
|
||||
}
|
||||
|
||||
reminder-comment:
|
||||
if: github.repository_owner == 'vllm-project'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Post welcome comment for first-time contributors
|
||||
|
||||
@@ -24,13 +24,14 @@ permissions:
|
||||
jobs:
|
||||
notify:
|
||||
if: >-
|
||||
(github.event_name == 'pull_request_target' &&
|
||||
github.repository_owner == 'vllm-project' &&
|
||||
((github.event_name == 'pull_request_target' &&
|
||||
github.event.action == 'labeled' &&
|
||||
(github.event.label.name == 'ready' ||
|
||||
github.event.label.name == 'ready-run-all-tests')) ||
|
||||
(github.event_name == 'workflow_run' &&
|
||||
github.event.workflow_run.event == 'pull_request_review' &&
|
||||
github.event.workflow_run.conclusion == 'success')
|
||||
github.event.workflow_run.conclusion == 'success'))
|
||||
runs-on: [self-hosted, linux, x64, vllm-runners]
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
@@ -20,6 +20,7 @@ jobs:
|
||||
# - 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.repository_owner == 'vllm-project' &&
|
||||
github.event.pull_request.draft == false &&
|
||||
contains(github.event.pull_request.labels.*.name, 'ready') &&
|
||||
(github.event.action != 'labeled' || github.event.label.name == 'ready') &&
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,7 +8,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
approved:
|
||||
if: github.event.review.state == 'approved'
|
||||
if: github.repository_owner == 'vllm-project' && github.event.review.state == 'approved'
|
||||
runs-on: [self-hosted, linux, x64, vllm-runners]
|
||||
steps:
|
||||
- run: echo "Approval recorded"
|
||||
|
||||
@@ -16,6 +16,7 @@ permissions:
|
||||
jobs:
|
||||
run-ci-command:
|
||||
if: >-
|
||||
github.repository_owner == 'vllm-project' &&
|
||||
github.event.issue.pull_request &&
|
||||
(github.event.comment.body == '/ci run' ||
|
||||
github.event.comment.body == '/ci run all' ||
|
||||
|
||||
Reference in New Issue
Block a user