forked from NVIDIA/TensorRT-LLM
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.11 KB
/
Copy pathlabel_component_pr.yml
File metadata and controls
42 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Label Component for PR
on:
pull_request_target:
types: [opened, reopened]
permissions:
contents: read
pull-requests: write
jobs:
label-component:
runs-on: ubuntu-latest
if: github.repository == 'NVIDIA/TensorRT-LLM'
# This workflow is advisory: it must never turn a PR check red. Every step
# is continue-on-error, so the check is always green even if setup or
# labeling fails.
steps:
- name: Checkout base repository
continue-on-error: true
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Python
continue-on-error: true
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies
continue-on-error: true
run: pip install requests
- name: Label PR by component
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
python .github/scripts/label_component.py
--pr ${{ github.event.pull_request.number }}
--codeowners .github/CODEOWNERS