This repository was archived by the owner on Jul 6, 2025. It is now read-only.
Label Sync #6279
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
| --- | |
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Label Sync | |
| on: | |
| # Manual Trigger | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: Dry Run | |
| default: true | |
| required: false | |
| type: boolean | |
| # Dry Run on any PR that changes the labels config or the workflow | |
| pull_request: | |
| paths: | |
| - .github/workflows/label-sync.yaml | |
| - .github/labels.yaml | |
| # "Wet" Run on any push to the main branch that changes the labels config or the workflow | |
| push: | |
| branches: ["main", "master"] | |
| paths: | |
| - .github/workflows/label-sync.yaml | |
| - .github/labels.yaml | |
| # "Wet" Run hourly | |
| schedule: | |
| - cron: "0 * * * *" | |
| jobs: | |
| label-sync: | |
| uses: mirceanton/reusable-workflows/.github/workflows/reusable-label-sync.yaml@09f31ab6340ce5651dc6c28512a82de6b2415fb9 # v3.8.2 | |
| secrets: inherit | |
| with: | |
| dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }} | |
| config-file: .github/labels.yaml |