.github/workflows/labels.yml
raw| 1 | name: Sync Github labels |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | paths: |
| 8 | - ".github/**" |
| 9 | |
| 10 | jobs: |
| 11 | labels: |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - uses: actions/checkout@v4 |
| 15 | - name: Set up Python |
| 16 | uses: actions/setup-python@v5 |
| 17 | with: |
| 18 | python-version: 3.8 |
| 19 | - name: Install labels |
| 20 | run: pip install labels |
| 21 | - name: Sync config with Github |
| 22 | run: labels -u ${{ github.repository_owner }} -t ${{ secrets.GITHUB_TOKEN }} sync -f .github/labels.toml |