README tweaks #10
Workflow file for this run
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
# Synchronizes the repo's labels with labels.yml | |
name: Sync Labels | |
on: | |
push: | |
paths: | |
- '.github/workflows/sync-labels.yml' | |
- '.github/labels.yml' | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
env: | |
LABEL_SYNC_TOKEN: ${{ secrets.LABEL_SYNC_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github/labels.yml | |
sparse-checkout-cone-mode: false | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- run: npx github-label-sync -a '${{ secrets.LABEL_SYNC_TOKEN }}' -l '.github/labels.yml' ${{ github.repository }} | |
if: env.LABEL_SYNC_TOKEN != null |