mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 07:13:16 +08:00
add set-output command
This commit is contained in:
@@ -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
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user