From af164d6cbd0abf010f245dad765ab19204855e0b Mon Sep 17 00:00:00 2001 From: Michael van Tellingen Date: Fri, 6 Oct 2023 12:50:25 +0200 Subject: [PATCH] Pass body as env This should fix an escape issue when the body contains a backtick --- action.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 4f0f8c1..8815884 100644 --- a/action.yaml +++ b/action.yaml @@ -143,10 +143,12 @@ runs: owner: context.repo.owner, repo: context.repo.repo, name: process.env.version, - body: `${{ steps.release-notes.outputs.body }}`, + body: process.env.GITHUB_RELEASE_BODY, tag_name: process.env.version, draft: false, }) + env: + GITHUB_RELEASE_BODY: ${{ steps.release-notes.outputs.body }} # We need to manually trigger a release workflow since GitHub actions cannot # automatically trigger other GitHub actions.