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