mirror of https://github.com/actions/toolkit
Catch multiple instances
parent
0e36a96ee5
commit
c44e73f0a5
|
@ -97,7 +97,7 @@ export function exportVariable(name: string, val: any): void {
|
|||
* @param secret value of the secret
|
||||
*/
|
||||
export function setSecret(secret: string): void {
|
||||
for (const part of secret.split(/[\r\n]/)) {
|
||||
for (const part of secret.split(/[\r\n]+/)) {
|
||||
if (part) {
|
||||
issueCommand('add-mask', {}, part)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue