Annotation code fix (#1335)

Co-authored-by: lmvysakh <lmvysakh@github.com>
This commit is contained in:
lmvysakh
2026-07-13 23:58:55 +05:30
committed by GitHub
parent 6849080452
commit c7092773a3
2 changed files with 13 additions and 2 deletions
+7 -1
View File
@@ -55759,7 +55759,13 @@ async function installPython(workingDirectory) {
core.info(data.toString().trim());
},
stderr: (data) => {
core.error(data.toString().trim());
const msg = data.toString().trim();
if (/^WARNING:/im.test(msg)) {
core.warning(msg);
}
else {
core.error(msg);
}
}
}
};
+6 -1
View File
@@ -193,7 +193,12 @@ async function installPython(workingDirectory: string) {
core.info(data.toString().trim());
},
stderr: (data: Buffer) => {
core.error(data.toString().trim());
const msg = data.toString().trim();
if (/^WARNING:/im.test(msg)) {
core.warning(msg);
} else {
core.error(msg);
}
}
}
};