-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 817 Bytes
/
Copy pathlabel-sync.yaml
File metadata and controls
33 lines (29 loc) · 817 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
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Label Sync"
on:
workflow_dispatch:
push:
branches: ["main"]
paths: [".github/labels.yaml"]
schedule:
- cron: "0 0 * * *"
permissions:
issues: write
contents: read
jobs:
label-sync:
name: Label Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
sparse-checkout: .github/labels.yaml
- name: Sync Labels
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2
with:
request-token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/labels.yaml
delete-other-labels: true