| 1 | name: Sync labels |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | paths: |
| 8 | - .github/labels.yml |
| 9 | workflow_dispatch: |
| 10 | |
| 11 | jobs: |
| 12 | sync: |
| 13 | permissions: |
| 14 | pull-requests: write |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - uses: actions/checkout@v5 |
| 18 | with: |
| 19 | persist-credentials: false |
| 20 | - uses: micnncim/action-label-syncer@v1 |
| 21 | with: |
| 22 | prune: false |
| 23 | env: |
| 24 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |