mirror of
https://github.com/actions/setup-python.git
synced 2026-07-14 18:52:15 +03:00
Annotation code fix (#1335)
Co-authored-by: lmvysakh <lmvysakh@github.com>
This commit is contained in:
Vendored
+7
-1
@@ -55759,7 +55759,13 @@ async function installPython(workingDirectory) {
|
|||||||
core.info(data.toString().trim());
|
core.info(data.toString().trim());
|
||||||
},
|
},
|
||||||
stderr: (data) => {
|
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());
|
core.info(data.toString().trim());
|
||||||
},
|
},
|
||||||
stderr: (data: Buffer) => {
|
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