From 97e5d0c887026bcb22404953e4fa3d54fce7cea1 Mon Sep 17 00:00:00 2001 From: Kody Jackson Date: Tue, 12 Dec 2023 12:41:47 -0700 Subject: [PATCH] fix bash variable assignment --- .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 d7115186ff6acd..513517d576b1d0 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_unformatted = "TEST\n\n" + comment_body_unformatted="TEST\n\n" comment_body=$(jq -n --arg body "$comment_body_unformatted" '{body: $body}') # If a comment exists, update it. Otherwise, post a new comment. if [ ! -z "$existing_comment_id" ]; then