Write PR body to a file instead of a buggy multi-line echo (#2188)

This commit is contained in:
Josh Mock
2024-03-27 10:46:56 -05:00
committed by GitHub
parent 113b32258d
commit c7cbe941db
2 changed files with 3 additions and 5 deletions

View File

@ -37,7 +37,5 @@ $(cat "$f")
done
# send data to output parameters
{
echo "PR_BODY='$comment'"
echo "PR_DRAFT=$has_rejects"
} >> "$GITHUB_OUTPUT"
echo "$comment" > /tmp/pr_body
echo "PR_DRAFT=$has_rejects" >> "$GITHUB_OUTPUT"

View File

@ -47,6 +47,6 @@ jobs:
title: 'Apply patch from elastic/elasticsearch-js#${{ github.event.pull_request.number }}'
commit-message: 'Apply patch from elastic/elasticsearch-js#${{ github.event.pull_request.number }}'
branch-suffix: short-commit-hash
body: '${{ steps.apply-patch.outputs.PR_BODY }}'
body-path: /tmp/pr_body
draft: '${{ steps.apply-patch.outputs.PR_DRAFT }}'
add-paths: ':!*.rej'