mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
36 lines
930 B
YAML
36 lines
930 B
YAML
---
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: "Label Sync"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ["main"]
|
|
paths: [".github/labels.yaml"]
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
jobs:
|
|
label-sync:
|
|
name: Label Sync
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate Token
|
|
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2
|
|
id: app-token
|
|
with:
|
|
app-id: "${{ secrets.BOT_APP_ID }}"
|
|
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
|
|
|
|
- name: Checkout Default Branch
|
|
uses: actions/checkout@v5
|
|
with:
|
|
token: "${{ steps.app-token.outputs.token }}"
|
|
|
|
- name: Sync Labels
|
|
uses: EndBug/label-sync@v2
|
|
with:
|
|
token: "${{ steps.app-token.outputs.token }}"
|
|
config-file: .github/labels.yaml
|
|
delete-other-labels: true
|