From a80d2dfe510badfc7547cf838099427214bddd34 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Mon, 21 Aug 2023 09:09:24 -0700 Subject: [PATCH] Fix windows labeler Signed-off-by: Maksym Pavlenko --- .github/workflows/labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index ad787b25..1a6e8583 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -16,7 +16,7 @@ jobs: # Required by gh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.number }} + PR_URL: ${{ github.event.pull_request.html_url }} steps: - uses: actions/labeler@v4 @@ -27,5 +27,5 @@ jobs: sync-labels: true # Apply OS-windows label if PR title contains 'Windows' - - run: gh pr edit $PR_NUMBER --add-label OS-windows + - run: gh pr edit $PR_URL --add-label OS-windows if: contains(github.event.pull_request.title, 'Windows')