mirror of
https://gitea.com/actions/setup-python.git
synced 2026-10-14 17:47:02 +00:00
Annotation code fix (#1335)
Co-authored-by: lmvysakh <lmvysakh@github.com>
This commit is contained in:
1 parent
6849080452
commit
c7092773a3
2 files changed
+13
-2
No files matched your search
Vendored
+7
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user