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