From 9c70d2a3eea1858c17fc3d530273f8cd27f76e88 Mon Sep 17 00:00:00 2001 From: Kody Jackson Date: Tue, 12 Dec 2023 12:26:05 -0700 Subject: [PATCH] Fix bug --- .github/workflows/automated-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automated-review.yml b/.github/workflows/automated-review.yml index 4ea38d6226d46a0..874ee3f11663866 100644 --- a/.github/workflows/automated-review.yml +++ b/.github/workflows/automated-review.yml @@ -29,7 +29,7 @@ jobs: "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" | \ jq '.[] | select(.user.id == 41898282) | select(.body | contains("TEST")) | .id') - comment_body="TEST" + comment_body=$(jq -n --arg body "TEST" '{body: $body}') # If a comment exists, update it. Otherwise, post a new comment. if [ ! -z "$existing_comment_id" ]; then curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \