Skip to content

Automatic Label Sync #1231

Automatic Label Sync

Automatic Label Sync #1231

Workflow file for this run

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