add set-output command

This commit is contained in:
Matt Cooper committed 2019-06-24 16:14:47 -04:00
1 parent e3778dff5b
commit 114d07bdd6
2 files changed
+15

No files matched your search

+10
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
//-----------------------------------------------------------------------