From c76355e531d58c46d85c9e4dd324afcf9e7d600a Mon Sep 17 00:00:00 2001 From: Volodymyr S <26582191+SweetOps@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:30:34 -0500 Subject: [PATCH] ci: update Sync labels workflow (#18) --- .github/labels.yml | 2 +- .github/workflows/labels.yml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 4a88a7a..d55101c 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -54,4 +54,4 @@ description: Adding missing tests or correcting existing tests - color: dfb443 name: chore - description: Adding missing tests or correcting existing tests \ No newline at end of file + description: Adding missing tests or correcting existing tests diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index f1fa7af..5039c5d 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -4,6 +4,10 @@ on: push: branches: - main + pull_request: + paths: + - ".github/labels.yml" + - ".github/workflows/labels.yml" jobs: sync-labels: @@ -14,9 +18,8 @@ jobs: uses: actions/checkout@v4 - name: Sync labels - uses: micnncim/action-label-syncer@v1.3.0 - 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' }}