diff --git a/main.js b/main.js index 5e5e4bf..1d33488 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,5 @@ async function main() { + const {randomUUID} = require('crypto'); const homedir = require('os').homedir(); const tempdir = require('os').tmpdir(); const fs = require('fs'); @@ -6,6 +7,8 @@ async function main() { const tmp = require('tmp'); const {waitFile} = require('wait-file'); + const multiLineDelimiter = randomUUID(); + console.log("\033[36mPWD: " + process.cwd() + "\033[0m"); tmp.setGracefulCleanup(); @@ -108,7 +111,10 @@ async function main() { } }); }); - fs.appendFileSync(process.env.GITHUB_OUTPUT, 'helm_output=' + result.trim().split('%').join('%25').split('\n').join('%0A').split('\r').join('%0D') + '\n'); + fs.appendFileSync( + process.env.GITHUB_OUTPUT, + `helm_output<<${multiLineDelimiter}\n${result.trim()}\n${multiLineDelimiter}\n` + ); } catch (error) { process.exit(1); } finally {