-
-
Notifications
You must be signed in to change notification settings - Fork 630
49 lines (40 loc) · 1.07 KB
/
pr-labeler.yml
File metadata and controls
49 lines (40 loc) · 1.07 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
43
44
45
46
47
48
49
name: "Pull Request Labeler"
on:
pull_request_target:
types:
- opened
- synchronize
jobs:
labeler:
permissions:
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Read repo config
uses: pietrobolcato/action-read-yaml@1.1.0
id: repo-config
with:
config: repo-config.yml
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "${{ steps.repo-config.outputs['python-version'] }}"
- name: Run Poetry Image
uses: abatilo/actions-poetry@v3
with:
poetry-version: "${{ steps.repo-config.outputs['poetry-version'] }}"
- name: Install Dependencies
run: poetry install
- name: Create labels
run: poetry run python scripts/set_up_labeler.py
- name: Show labeler config
run: cat .github/labeler.yml
- uses: actions/labeler@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true