charts/.github/workflows/schedule-sync-labels.yaml
renovate[bot] 78e8e2d29a
chore(deps): update actions/checkout action to v3 (#1478)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 11:13:14 +02:00

33 lines
835 B
YAML

---
name: "Schedule: Sync labels"
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: "0 * * * *"
jobs:
labels:
name: Sync Labels
runs-on: ubuntu-latest
if: github.repository == 'k8s-at-home/charts'
steps:
- name: Generate Token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Sync Labels
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.yaml
token: "${{ steps.generate-token.outputs.token }}"
delete-other-labels: true