mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-10 04:08:58 +08:00
spec update
This commit is contained in:
parent
aa10eecbb0
commit
2e729086fa
@ -21,6 +21,16 @@ export function error(message: string): void
|
||||
*/
|
||||
export function exportVariable(name: string, val: string): void
|
||||
|
||||
/**
|
||||
* exports the variable and registers a secret which will get masked from logs
|
||||
* @param name the name of the variable to set
|
||||
* @param val value of the secret
|
||||
*/
|
||||
export function exportSecret(name: string, val: string) {
|
||||
exportVariable(name, val);
|
||||
intm._issueCommand('set-secret', {}, val);
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for getInput options
|
||||
*/
|
||||
|
@ -19,6 +19,16 @@ export function error(message: string): void
|
||||
*/
|
||||
export function exportVariable(name: string, val: string): void
|
||||
|
||||
/**
|
||||
* exports the variable and registers a secret which will get masked from logs
|
||||
* @param name the name of the variable to set
|
||||
* @param val value of the secret
|
||||
*/
|
||||
export function exportSecret(name: string, val: string) {
|
||||
exportVariable(name, val);
|
||||
intm._issueCommand('set-secret', {}, val);
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for getInput options
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user