From f5a6c01e748d1f83e67368221b825f5c3d60d3c8 Mon Sep 17 00:00:00 2001 From: Jean-Yves LENHOF Date: Tue, 18 Nov 2025 12:37:14 +0100 Subject: [PATCH] fix return code if no package to clean --- src/clean-pip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clean-pip.ts b/src/clean-pip.ts index 2e01ada0..dcc1010c 100644 --- a/src/clean-pip.ts +++ b/src/clean-pip.ts @@ -9,7 +9,7 @@ export async function cleanPipPackages() { // Use a shell so we can pipe the output of pip freeze into xargs await exec('bash', [ '-c', - 'test $(python3 -m pip freeze | wc -l) -gt 0 && python3 -m pip freeze | xargs python3 -m pip uninstall -y' + 'test $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true' ]); core.info('Successfully cleaned up pip packages'); } catch (error) {