From 38555a73c016a0d7d39f72aabd32eadecd49e4e2 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 14 Jul 2022 08:36:38 -0700 Subject: [PATCH] fix labeler --- .github/workflows/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 2fc336fbe..24bc37e39 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,10 +13,10 @@ jobs: pull-requests: read if: github.event_name == 'pull_request_target' steps: - - run: gh pr view --json labels https://github.com/$GITHUB_REPOSITORY/pull/$GITHUB_PR | jq -r '.labels[0].name' | grep -q 'null' && echo "You must apply at least one label" && exit 1 + - run: gh pr view --json labels https://github.com/$GITHUB_REPOSITORY/pull/$GITHUB_PR | jq -r '.labels[0].name' | grep -q 'null' && echo "You must apply at least one label" && exit 1 || exit 0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_PR: ${{ steps.source-run-info.outputs.pullRequestNumber }} + GITHUB_PR: ${{ github.event.pull_request.number }} update_release_draft: runs-on: ubuntu-latest permissions: