-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabel-sync-basic.yml
More file actions
32 lines (28 loc) · 889 Bytes
/
label-sync-basic.yml
File metadata and controls
32 lines (28 loc) · 889 Bytes
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
# file: examples/workflows/label-sync-basic.yml
# Basic example for label synchronization
name: Sync Labels from ghcommon
on:
workflow_dispatch:
schedule:
# Run monthly on the 1st at 3 AM UTC
- cron: '0 3 1 * *'
permissions:
contents: read
issues: read
pull-requests: read
jobs:
sync-labels:
uses: jdfalk/ghcommon/.github/workflows/reusable-label-sync.yml@83352d45a93951d4e490a5c310e31858a52e29ce # v1.10.5-rc.2
with:
# Use labels.json from ghcommon repository
config-file: 'labels.json'
# Sync to current repository only
repositories: ${{ github.repository }}
# Don't delete extra labels (safe mode)
delete-extra-labels: false
# Not a dry run - make actual changes
dry-run: false
# Fetch configuration from ghcommon
source-repo: 'jdfalk/ghcommon'
source-branch: 'main'
secrets: inherit