-
Notifications
You must be signed in to change notification settings - Fork 63
31 lines (25 loc) · 886 Bytes
/
size-labeler.yml
File metadata and controls
31 lines (25 loc) · 886 Bytes
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
name: PR Size Labeler
on:
pull_request_target:
types: [opened, synchronize]
permissions:
pull-requests: write
contents: write
jobs:
add-pr-size-label:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{github.event.pull_request.number}}
cancel-in-progress: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
- name: Run size labeler
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}
GITHUB_EVENT_ACTION: ${{github.event.action}}
GITHUB_EVENT_NAME: ${{github.event_name}}
ACTION: "add-pr-size-label"
run: uv run python .github/workflows/scripts/pr_workflow.py