Skip to content

Commit 85595b4

Browse files
Add a GitHub Actions workflow to automatically sync the repository labels.
This commit adds a `.github/workflow/sync-labels.yml` file, which defines a workflow that syncs this repository's labels with the contents of the `.github/labels.yml` file. The labels are synced automatically whenever the `.github/labels.yml` file changes.
1 parent fb605e1 commit 85595b4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/sync-labels.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tools
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- .github/labels.yml
8+
- .github/workflows/sync-labels.yml
9+
schedule:
10+
- cron: 0 0 1 * *
11+
workflow_dispatch:
12+
13+
jobs:
14+
sync-labels:
15+
name: Sync labels
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
19+
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)