From 9918c2671a228754cf4c847fab2e42bbafebcf2d Mon Sep 17 00:00:00 2001 From: Viacheslav Sarzhan Date: Fri, 28 Feb 2025 14:30:18 +0200 Subject: [PATCH 1/2] CLOUD-727 fix labeler --- .github/workflows/labeler.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 3f6a2dfe00..de82f810c1 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -19,6 +19,9 @@ jobs: label-community: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: "Check if PR is from a fork" if: github.event.pull_request.head.repo.fork == true run: | From 796366065b32b89714d29e68cc27fc19dd4c3d71 Mon Sep 17 00:00:00 2001 From: Viacheslav Sarzhan Date: Fri, 28 Feb 2025 18:23:08 +0200 Subject: [PATCH 2/2] add improvment --- .github/workflows/labeler.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index de82f810c1..77c72b99f3 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -19,13 +19,10 @@ jobs: label-community: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: "Check if PR is from a fork" if: github.event.pull_request.head.repo.fork == true run: | - gh pr edit ${{ github.event.pull_request.number }} --add-label "community" + gh pr edit ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --add-label "community env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}