This repository was archived by the owner on Nov 3, 2025. It is now read-only.
Create Repository Labels #272
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
| --- | |
| "on": | |
| push: | |
| branches: | |
| - trunk | |
| paths: | |
| - .github/labels.yaml | |
| - .github/workflows/repo-labels.yaml | |
| pull_request: | |
| branches: | |
| - trunk | |
| paths: | |
| - .github/labels.yaml | |
| - .github/workflows/repo-labels.yaml | |
| schedule: | |
| - cron: "0 0 * * TUE" | |
| name: Create Repository Labels | |
| permissions: {} | |
| jobs: | |
| labels: | |
| name: Synchronize repository labels | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| issues: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: Sync GitHub Issue Labels | |
| uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916 # v5.3.0 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| yaml-file: .github/labels.yaml | |
| skip-delete: false | |
| dry-run: ${{ github.ref != 'refs/heads/trunk' }} |