-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (40 loc) · 988 Bytes
/
Copy pathlabels-sync.yml
File metadata and controls
40 lines (40 loc) · 988 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
32
33
34
35
36
37
38
39
40
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Label Sync"
on:
workflow_dispatch:
push:
branches: ["main"]
paths: [".github/labels.yml"]
schedule:
- cron: "0 0 * * *"
pull_request_target:
branches: ["main"]
permissions:
issues: write
jobs:
label-sync:
name: Label Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
sparse-checkout: .github/labels.yml
- name: Sync Labels
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.yml
delete-other-labels: true
labeler:
name: Labeler
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Labeler
uses: actions/labeler@v7
with:
configuration-path: .github/labeler.yml