-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1013 Bytes
/
label-sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Label Sync
on:
# Manual Trigger
workflow_dispatch:
inputs:
dry-run:
description: Dry Run
default: true
required: false
type: boolean
# Dry Run on any PR that changes the labels config or the workflow
pull_request:
paths:
- .github/workflows/label-sync.yaml
- .github/labels.yaml
# "Wet" Run on any push to the main branch that changes the labels config or the workflow
push:
branches: ["main", "master"]
paths:
- .github/workflows/label-sync.yaml
- .github/labels.yaml
# "Wet" Run hourly
schedule:
- cron: "0 * * * *"
jobs:
label-sync:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-label-sync.yaml@f8a15cef06b25b9ba5fe77ffcf4f4f2810adf1c5 # v3.4.20
secrets: inherit
with:
dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }}
config-file: .github/labels.yaml