| 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 |
| 17 |
- name: Set up Python |
| 18 |
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 |
| 19 |
with: |
| 20 |
python-version: "3.14" # renovate: customPinnedDependency=python,datasource=python-version |
| 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 |