mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 16:16:21 +00:00
Set output
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -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);
|
||||||
|
|||||||
@@ -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