Skip to content

Commit c76355e

Browse files
authored
ci: update Sync labels workflow (#18)
1 parent 2750668 commit c76355e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
description: Adding missing tests or correcting existing tests
5555
- color: dfb443
5656
name: chore
57-
description: Adding missing tests or correcting existing tests
57+
description: Adding missing tests or correcting existing tests

.github/workflows/labels.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
paths:
9+
- ".github/labels.yml"
10+
- ".github/workflows/labels.yml"
711

812
jobs:
913
sync-labels:
@@ -14,9 +18,8 @@ jobs:
1418
uses: actions/checkout@v4
1519

1620
- name: Sync labels
17-
uses: micnncim/action-label-syncer@v1.3.0
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
GITHUB_REPOSITORY: ${{ github.repository }}
21+
uses: crazy-max/ghaction-github-labeler@v5
2122
with:
22-
manifest: .github/labels.yml
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
yaml-file: .github/labels.yml
25+
dry-run: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)