mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-26 08:54:49 +01:00
32 lines
732 B
YAML
32 lines
732 B
YAML
name: "Meta: Sync labels"
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- ".github/labels.yaml"
|
|
|
|
jobs:
|
|
labels:
|
|
name: Sync Labels
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Generate Token
|
|
uses: tibdex/github-app-token@v1
|
|
id: generate-token
|
|
with:
|
|
app_id: "${{ secrets.BOT_APP_ID }}"
|
|
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
|
|
|
|
- name: Sync Labels
|
|
uses: EndBug/label-sync@v2
|
|
with:
|
|
config-file: .github/labels.yaml
|
|
token: "${{ steps.generate-token.outputs.token }}"
|
|
delete-other-labels: true
|