mirror of
https://github.com/actions/github-script.git
synced 2026-10-15 20:06:55 +00:00
Set output
This commit is contained in:
2 files changed
+5
-2
No files matched your search
Vendored
+2
-1
@@ -9192,7 +9192,8 @@ async function main() {
|
|||||||
default:
|
default:
|
||||||
throw new Error('"result-encoding" must be either "string" or "json"');
|
throw new Error('"result-encoding" must be either "string" or "json"');
|
||||||
}
|
}
|
||||||
// core.setOutput('result', output)
|
console.log('setting output', output);
|
||||||
|
Object(core.setOutput)('result', output);
|
||||||
}
|
}
|
||||||
function handleError(err) {
|
function handleError(err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
|||||||
+3
-1
@@ -39,7 +39,9 @@ async function main() {
|
|||||||
throw new Error('"result-encoding" must be either "string" or "json"')
|
throw new Error('"result-encoding" must be either "string" or "json"')
|
||||||
}
|
}
|
||||||
|
|
||||||
// core.setOutput('result', output)
|
console.log('setting output', output)
|
||||||
|
|
||||||
|
core.setOutput('result', output)
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleError(err: any) {
|
function handleError(err: any) {
|
||||||
|
|||||||
Reference in new issue
Block a user