Write PR body to a file instead of a buggy multi-line echo (#2188)
This commit is contained in:
6
.github/workflows/serverless-patch.sh
vendored
6
.github/workflows/serverless-patch.sh
vendored
@ -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"
|
||||
|
||||
2
.github/workflows/serverless-patch.yml
vendored
2
.github/workflows/serverless-patch.yml
vendored
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user