Skip to content

Commit 9abe67e

Browse files
committed
Encode result into output
1 parent 622ce31 commit 9abe67e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ async function main() {
2626

2727
switch (encoding) {
2828
case 'json':
29-
result = JSON.stringify(result)
29+
output = JSON.stringify(result)
3030
break
3131
case 'string':
32-
result = String(result)
32+
output = String(result)
3333
break
3434
default:
3535
throw new Error('"result-encoding" must be either "string" or "json"')
3636
}
3737

38-
core.setOutput('result', result)
38+
core.setOutput('result', output)
3939
}
4040

4141
function handleError(err) {

0 commit comments

Comments
 (0)