Skip to content

Commit

Permalink
Fix for getting of description for PR Checklist job (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsandruss authored Sep 30, 2024
1 parent 76d0a1d commit 3b265d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b265d7

Please sign in to comment.