Skip to content

Commit

Permalink
fix multiline outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed committed Mar 20, 2023
1 parent c02b7ea commit 7c0e5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
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 7c0e5e4

Please sign in to comment.