Sync labels #725
This file contains 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 | |
workflow_dispatch: | |
schedule: | |
# each day | |
- cron: "0 20 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# https://github.com/micnncim/action-label-syncer | |
- uses: micnncim/action-label-syncer@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
manifest: .github/labels.yml | |
# delete all existing labels which is not mentioned in manifest | |
prune: false |