Skip to content

Commit

Permalink
Merge pull request #11 from alexrashed/patch-1
Browse files Browse the repository at this point in the history
fix multiline outputs
  • Loading branch information
kishyr committed Mar 24, 2023
2 parents cb779ec + 7c0e5e4 commit c49c774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -8,7 +8,7 @@ try {
const replaceAllInput = core.getInput('replaceAll')
const replaceAll = replaceAllInput ? replaceAllInput == 'true' : false
const resultValue = replaceAll ? source.replaceAll(find, replace) : source.replace(find, replace)
fs.writeFileSync(process.env.GITHUB_OUTPUT, `value=${resultValue}\n`)
core.setOutput('value', resultValue)
} catch (error) {
core.setFailed(error.message)
}

0 comments on commit c49c774

Please sign in to comment.