Skip to content

Commit

Permalink
Pass body as env
Browse files Browse the repository at this point in the history
This should fix an escape issue when the body contains a backtick
  • Loading branch information
mvantellingen committed Oct 6, 2023
1 parent 559417a commit af164d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit af164d6

Please sign in to comment.