Skip to content

Commit 3760b83

Browse files
committed
chore: add label sync workflow
1 parent 4506012 commit 3760b83

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/labels.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 🏷️ Sync Labels
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths:
8+
- '.github/workflows/labels.yml'
9+
pull_request:
10+
paths:
11+
- '.github/workflows/labels.yml'
12+
workflow_dispatch: # Allow manual triggering
13+
14+
permissions:
15+
contents: read
16+
issues: write
17+
18+
jobs:
19+
sync-labels:
20+
name: 🏷️ Sync repository labels
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: 📦 Download labels.yml
24+
run: |
25+
curl -fsSL "https://raw.githubusercontent.com/groundsgg/.github/refs/heads/main/.github/labels.yml" -o labels.yml
26+
27+
- name: 🏷️ Sync labels
28+
uses: crazy-max/ghaction-github-labeler@v5
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
yaml-file: labels.yml
32+
dry-run: ${{ github.event_name == 'pull_request' }}
33+
skip-delete: false
34+
exclude: |
35+
help*
36+
*issue
37+
autorelease*

0 commit comments

Comments
 (0)