mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Set output
This commit is contained in:
parent
1e169ae445
commit
904b439f45
2 changed files with 5 additions and 2 deletions
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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue