Fix windows labeler

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2023-08-21 09:09:24 -07:00
parent 0adc36d012
commit a80d2dfe51
1 changed files with 2 additions and 2 deletions

View File

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