Skip to content

Commit

Permalink
do the transpilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Jan 20, 2023
1 parent df11ebf commit 5cbce4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ function run() {
const overwrite = core.getInput('overwrite') == 'true' ? true : false;
const prerelease = core.getInput('prerelease') == 'true' ? true : false;
const release_name = core.getInput('release_name');
const body = core.getInput('body');
const body = core.getInput('body')
.replace(/%25/g, '%')
.replace(/%0A/ig, '\n')
.replace(/%0D/ig, '\r');
const octokit = github.getOctokit(token);
const release = yield get_release_by_tag(tag, prerelease, release_name, body, octokit);
if (file_glob) {
Expand Down
9 changes: 5 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ async function run(): Promise<void> {
const overwrite = core.getInput('overwrite') == 'true' ? true : false
const prerelease = core.getInput('prerelease') == 'true' ? true : false
const release_name = core.getInput('release_name')
const body = core.getInput('body')
.replace(/%25/g, '%')
.replace(/%0A/ig, '\n')
.replace(/%0D/ig, '\r')
const body = core
.getInput('body')
.replace(/%25/g, '%')
.replace(/%0A/gi, '\n')
.replace(/%0D/gi, '\r')

const octokit = github.getOctokit(token)
const release = await get_release_by_tag(
Expand Down

0 comments on commit 5cbce4f

Please sign in to comment.