8000 Encode result into output · actions/github-script@9abe67e · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0