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')