From 2e1e4106fd2bf20ac8827ed2f6b3a632e29dc079 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 17 Feb 2023 14:21:16 +0100 Subject: [PATCH] build: ensure newlines work with $GITHUB_OUTPUT Signed-off-by: Hidde Beydals --- .github/workflows/update.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 74c17bab..dff93bda 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -70,7 +70,12 @@ jobs: git diff # export PR_BODY for PR and commit - echo "pr_body=$PR_BODY" >> $GITHUB_OUTPUT + # NB: this may look strange but it is the way it should be done to + # maintain our precious newlines + # Ref: https://github.com/github/docs/issues/21529 + echo 'pr_body<> $GITHUB_OUTPUT + echo "${PR_BODY}" >> $GITHUB_OUTPUT + echo 'EOF' >> $GITHUB_OUTPUT } - name: Create Pull Request