Skip to content

Commit

Permalink
Attempt to fix escaping `
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair authored May 20, 2024
1 parent fdcf97d commit 5a6d666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,13 @@ jobs:
id: create-release
with:
script: |
let changelog = steps.markdown-changelog.outputs.content.replace(/`/g, '\\`');
return await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: "v${{ inputs.version }}",
name: "v${{ inputs.version }}",
body: `${{ steps.markdown-changelog.outputs.content }}`,
body: `${{ changelog }}`,
draft: true,
prerelease: ${{ inputs.pre_release }}
});

0 comments on commit 5a6d666

Please sign in to comment.