Skip to content

Commit

Permalink
ci: update Sync labels workflow (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetOps authored Feb 7, 2024
1 parent 2750668 commit c76355e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
description: Adding missing tests or correcting existing tests
- color: dfb443
name: chore
description: Adding missing tests or correcting existing tests
description: Adding missing tests or correcting existing tests
13 changes: 8 additions & 5 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
pull_request:
paths:
- ".github/labels.yml"
- ".github/workflows/labels.yml"

jobs:
sync-labels:
Expand All @@ -14,9 +18,8 @@ jobs:
uses: actions/checkout@v4

- name: Sync labels
uses: micnncim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
uses: crazy-max/ghaction-github-labeler@v5
with:
manifest: .github/labels.yml
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
dry-run: ${{ github.event_name == 'pull_request' }}

0 comments on commit c76355e

Please sign in to comment.