diff --git a/.github/workflows/serverless-patch.sh b/.github/workflows/serverless-patch.sh index ab4f9ccc2..91cb49e38 100755 --- a/.github/workflows/serverless-patch.sh +++ b/.github/workflows/serverless-patch.sh @@ -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" diff --git a/.github/workflows/serverless-patch.yml b/.github/workflows/serverless-patch.yml index bf0af9100..9dfd063cd 100644 --- a/.github/workflows/serverless-patch.yml +++ b/.github/workflows/serverless-patch.yml @@ -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'