mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 08:59:09 +08:00
Apply linting
This commit is contained in:
parent
38e6785d19
commit
0e36a96ee5
@ -93,13 +93,13 @@ export function exportVariable(name: string, val: any): void {
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a secret which will get masked from logs
|
||||
* @param secret value of the secret
|
||||
*/
|
||||
* Registers a secret which will get masked from logs
|
||||
* @param secret value of the secret
|
||||
*/
|
||||
export function setSecret(secret: string): void {
|
||||
for (const part of secret.split(/[\r\n]/)) {
|
||||
if (part) {
|
||||
issueCommand('add-mask', {}, part);
|
||||
issueCommand('add-mask', {}, part)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user