From bb2d645a1b590dbfe495791205bd9f25df170086 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Mon, 30 Sep 2024 07:26:32 -0700 Subject: [PATCH] Fix for getting of description for PR Checklist job --- .github/workflows/pr-checklist.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-checklist.yml b/.github/workflows/pr-checklist.yml index 887b879abbf..0e9026bcfdc 100644 --- a/.github/workflows/pr-checklist.yml +++ b/.github/workflows/pr-checklist.yml @@ -42,8 +42,9 @@ jobs: core.setOutput('draft', pr_desc.data.draft) - name: Check if all checkboxes are checked id: checkboxes + env: + DESCRIPTION: ${{ steps.pr.outputs.body }} run: | - DESCRIPTION="${{ steps.pr.outputs.body }}" UNCHECKED=$(echo "$DESCRIPTION" | grep -c '\[ \]' || true) echo "unchecked=$UNCHECKED" >> $GITHUB_OUTPUT - name: Fail if not all checkboxes are checked and PR is not draft