mirror of https://github.com/actions/toolkit
Apply linting
parent
38e6785d19
commit
0e36a96ee5
|
@ -94,12 +94,12 @@ export function exportVariable(name: string, val: any): void {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a secret which will get masked from logs
|
* Registers a secret which will get masked from logs
|
||||||
* @param secret value of the secret
|
* @param secret value of the secret
|
||||||
*/
|
*/
|
||||||
export function setSecret(secret: string): void {
|
export function setSecret(secret: string): void {
|
||||||
for (const part of secret.split(/[\r\n]/)) {
|
for (const part of secret.split(/[\r\n]/)) {
|
||||||
if (part) {
|
if (part) {
|
||||||
issueCommand('add-mask', {}, part);
|
issueCommand('add-mask', {}, part)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue