repo-sync-2024-02-22T15:35:24+0800 #1
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
# This workflow updates our GitHub Labels using https://github.com/Financial-Times/github-label-sync | |
# Labels are defined in .github/workflows/config/labels.yml | |
# See that file for specific instructions on making changes. | |
name: 'GitHub: update labels' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/config/labels.yml | |
- .github/workflows/update-labels.yml | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Use pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ^7.29 | |
run_install: false | |
- name: Run github-label-sync | |
run: | |
pnpm dlx github-label-sync --labels .github/workflows/config/labels.yml | |
--access-token ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} |