forked from vitali87/code-graph-rag
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 781 Bytes
/
label-sync.yml
File metadata and controls
33 lines (29 loc) · 781 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
name: Sync Labels
on:
push:
branches:
- main
paths:
- ".github/labels.yml"
- ".github/workflows/label-sync.yml"
workflow_dispatch:
schedule:
# Run weekly on Mondays at 00:00 UTC to ensure labels stay in sync
- cron: "0 0 * * 1"
jobs:
sync-labels:
name: Sync Repository Labels
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Sync labels
uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
manifest: .github/labels.yml
prune: false # Don't delete labels not in the manifest (preserve existing custom labels)