Use centralized workflow for label sync (#157)

This commit is contained in:
Franck Nijhof 2021-11-01 17:12:42 +01:00 committed by GitHub
parent 70bc8d4414
commit d5385b64b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,20 +3,15 @@ name: Sync labels
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
paths:
- .github/labels.yml
schedule:
- cron: "34 5 * * *"
workflow_dispatch:
jobs:
labels:
name: ♻️ Sync labels
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.5
- name: 🚀 Run Label Syncer
uses: micnncim/action-label-syncer@v1.3.0
env:
- uses: hassio-addons/workflows/.github/workflows/labels.yaml@main
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}