From c013c0198495576b03ede58c6314bad161fd7556 Mon Sep 17 00:00:00 2001 From: Jason Kai <21226986+kaitj@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:08:35 -0500 Subject: [PATCH] Update sed to be case-insensitive to code block --- .github/workflows/checklist.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checklist.yaml b/.github/workflows/checklist.yaml index 91c2e09..85f7ae9 100644 --- a/.github/workflows/checklist.yaml +++ b/.github/workflows/checklist.yaml @@ -32,7 +32,7 @@ jobs: if: steps.check_labels.outputs.result == 'true' run: | issue_body='${{ github.event.issue.body }}' - checklist=$(echo "$issue_body" | sed -n '/```json/,/```/p' | sed '1d;$d') + checklist=$(echo "$issue_body" | sed -n '/```json/I,/```/p' | sed '1d;$d') name=$(echo "$checklist" | jq -r '.name' | sed 's/ /_/g') echo "checklist=$(echo $checklist)" >> $GITHUB_ENV echo "name=$(echo $name)" >> $GITHUB_ENV