Skip to content

Commit 8e5b4a0

Browse files
authored
Merge pull request #35 from escendit/34-sync-labels-from-a-reusable-workflow-from-a-keystone-repository
Add GitHub Actions workflow for monthly label updates
2 parents 38c0f4f + 25ee4ed commit 8e5b4a0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Utility that updates labels based on keystone reusable workflow repository
2+
name: "Monthly Label Timer"
3+
on:
4+
# Manually run the job
5+
workflow_dispatch:
6+
# Periodically run the job
7+
# Every first day of the month at 1:28 UTC
8+
schedule:
9+
- cron: "28 1 1 * *"
10+
11+
# Grant only what’s needed; label management requires issues: write
12+
permissions:
13+
contents: read
14+
issues: write
15+
16+
# Prevent Concurrent Jobs
17+
concurrency:
18+
group: labels-monthly-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
# Runs reusable workflow (utility-update-labels.yml on the main branch) from keystone repository
23+
create-labels:
24+
name: "Update Labels"
25+
uses: escendit/keystone/.github/workflows/utility-update-labels.yml@main
26+
secrets: inherit

0 commit comments

Comments
 (0)