Automatic Label Sync #1401
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: Automatic Label Sync | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
label_sync: | |
name: Automatic Label Synchronization | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Core Labels | |
uses: actions/checkout@v4 | |
with: | |
path: core-labels | |
sparse-checkout: .github/labels.yml | |
sparse-checkout-cone-mode: false | |
repository: 'sapphiredev/.github' | |
- name: Checkout Overwrite Labels | |
uses: actions/checkout@v4 | |
with: | |
path: overwrite-labels | |
sparse-checkout: .github/labels.yml | |
sparse-checkout-cone-mode: false | |
- name: Merge labels | |
run: | | |
yq '. *+ load("core-labels/.github/labels.yml")' overwrite-labels/.github/labels.yml > labels.yml | |
- name: Run Label Sync | |
uses: crazy-max/ghaction-github-labeler@v5 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
yaml-file: labels.yml |