From c7092773a316760f4ecfe498e4af668a4dafeac5 Mon Sep 17 00:00:00 2001 From: lmvysakh Date: Mon, 13 Jul 2026 23:58:55 +0530 Subject: [PATCH] Annotation code fix (#1335) Co-authored-by: lmvysakh --- dist/setup/index.js | 8 +++++++- src/install-python.ts | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 6ac18cd5..82be52f0 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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); + } } } }; diff --git a/src/install-python.ts b/src/install-python.ts index 9e17c334..a9caf0fe 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -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); + } } } };