forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.11 KB
/
labeler.yml
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: "Pull Request Labeler"
on:
- pull_request_target
jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: akladiev/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/labeler.yml'
sync-labels: 'true'
dot: 'true'
non-matching-label: 'no-match-files'
external_pr_labeller:
name: Label External PR
runs-on: ubuntu-latest
steps:
- name: Checkout Labeller Script
uses: actions/checkout@v4
with:
sparse-checkout: '.github'
- name: Install deps
run: pip3 install PyGithub==2.2.0
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Label External PR
env:
GITHUB_TOKEN: "${{ secrets.EXTERNAL_LABELLER_TOKEN }}"
run: |
python3 ${{ github.workspace }}/.github/scripts/external_pr_labeller.py \
--repository-name ${GITHUB_REPOSITORY} --pr-number ${{ github.event.number }}