Check Label Configuration #196
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: Check Label Configuration | |
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows | |
on: | |
push: | |
paths: | |
- ".github/workflows/check-labels.yml" | |
- "workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json" | |
- "workflow-templates/assets/sync-labels/*.ya?ml" | |
- "Taskfile.ya?ml" | |
pull_request: | |
paths: | |
- ".github/workflows/check-labels.yml" | |
- "workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json" | |
- "workflow-templates/assets/sync-labels/*.ya?ml" | |
- "Taskfile.ya?ml" | |
schedule: | |
# Run periodically to catch breakage caused by external changes. | |
- cron: "0 18 * * WED" | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
version: 3.x | |
- name: Validate repository label configuration files | |
run: task labels:validate |