Skip to content

Sync Labels

Sync Labels #10

Workflow file for this run

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)