Skip to content

Commit 390e20b

Browse files
committed
Separate notes from the rest of helm output
1 parent 8bae032 commit 390e20b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

main.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async function main() {
9696

9797
try {
9898
console.log("\033[36mExecuting helm\033[0m");
99-
result = await new Promise((resolve, reject) => {
99+
const result = await new Promise((resolve, reject) => {
100100
const process = execFile(execShFile.name);
101101
process.stdout.on('data', console.log);
102102
process.stderr.on('data', console.log);
@@ -111,10 +111,16 @@ async function main() {
111111
}
112112
});
113113
});
114+
const [output, notes] = result.split(/^NOTES:$/m);
114115
fs.appendFileSync(
115116
process.env.GITHUB_OUTPUT,
116-
`helm_output<<${multiLineDelimiter}\n${result.trim()}\n${multiLineDelimiter}\n`
117+
`helm_output<<${multiLineDelimiter}\n${output}\n${multiLineDelimiter}\n`
117118
);
119+
fs.appendFileSync(
120+
process.env.GITHUB_OUTPUT,
121+
`helm_notes<<${multiLineDelimiter}\n${notes}\n${multiLineDelimiter}\n`
122+
);
123+
118124
} catch (error) {
119125
process.exit(1);
120126
} finally {

0 commit comments

Comments
 (0)