main
yml 50 lines 1.53 KB
Raw
1 name: Notify CI authorization
2
3 on:
4 pull_request_target:
5 types: [labeled]
6 workflow_run:
7 workflows: [Record CI approval]
8 types: [completed]
9
10 concurrency:
11 group: >-
12 notify-ci-authorized-${{
13 github.event.pull_request.number ||
14 github.event.workflow_run.pull_requests[0].number ||
15 github.event.workflow_run.id
16 }}
17 cancel-in-progress: false
18
19 permissions:
20 contents: read
21 issues: write
22 pull-requests: write
23
24 jobs:
25 notify:
26 if: >-
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' &&
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
38 with:
39 ref: ${{ github.event.repository.default_branch }}
40 persist-credentials: false
41 - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
42 with:
43 python-version: "3.12"
44 - name: Notify PR author that CI is available
45 run: >-
46 uv run --no-project --python 3.12
47 .github/workflows/scripts/run_ci_command.py
48 env:
49 CI_TRUSTED_USERS: ${{ vars.CI_TRUSTED_USERS }}
50 GH_TOKEN: ${{ github.token }}