-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.03 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
# based on https://github.com/ayoisaiah/f2/blob/8ca4293f512feb762f02bd1e3fed438cfc3664f8/.github/workflows/labeler.yml
name: Update labels
permissions:
contents: read
issues: write
on:
workflow_dispatch:
inputs:
dry-run:
type: boolean
default: true
required: false
push:
branches:
- main
paths:
- .github/labels-data.yml
- .github/workflows/labeler.yml
pull_request:
branches:
- main
paths:
- .github/labels-data.yml
- .github/workflows/labeler.yml
jobs:
labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# - run: echo ${{ github.event_name != 'workflow_dispatch' || inputs.dry-run }}
- name: Run labeler
uses: crazy-max/ghaction-github-labeler@v5
with:
yaml-file: .github/labels-data.yml
# only update labels if event == workflow_dispatch and dry-run == true
dry-run: ${{ github.event_name != 'workflow_dispatch' || inputs.dry-run }}