Sync Labels #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |