microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
.github/workflows/sync-labels.yml
33lines · modecode
| 1 | name: Sync labels |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: "0 0 * * *" |
| 6 | push: |
| 7 | branches: |
| 8 | - "main" |
| 9 | paths: |
| 10 | - "package.json" |
| 11 | - "eng/common/config/" |
| 12 | - "eng/common/labels/" |
| 13 | - ".github/workflows/sync-labels.yml" |
| 14 | |
| 15 | workflow_dispatch: {} |
| 16 | |
| 17 | permissions: |
| 18 | issues: write |
| 19 | |
| 20 | jobs: |
| 21 | sync: |
| 22 | runs-on: ubuntu-latest |
| 23 | steps: |
| 24 | - uses: actions/checkout@v4 |
| 25 | - uses: ./.github/actions/setup |
| 26 | |
| 27 | - run: pnpm install |
| 28 | name: Install dependencies |
| 29 | |
| 30 | - run: pnpm sync-labels --github |
| 31 | name: Sync labels |
| 32 | env: |
| 33 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 34 | |