add set-output command

This commit is contained in:
Matt Cooper
2019-06-24 16:14:47 -04:00
parent d8737aa49c
commit 55c0e7020e
2 changed files with 15 additions and 0 deletions

View File

@@ -61,6 +61,16 @@ export function getInput(name: string, options?: InputOptions): string {
return val.trim()
}
/**
* Sets the value of an output.
*
* @param name name of the output to set
* @param value value to store
*/
export function setOutput(name: string, value: string): void {
issueCommand('set-output', {'name': name}, value)
}
//-----------------------------------------------------------------------
// Results
//-----------------------------------------------------------------------