diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 01df733de8..45a13fd41f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Ensure PR has at least one label - if: ${{ github.event.pull_request.labels == '' || github.event.pull_request.labels == '[]' }} + if: ${{ github.event.pull_request.labels[0] == null }} run: | echo "No labels found: please add at least one label to the PR" exit 1