diff --git a/src/index.ts b/src/index.ts index 654a6fa..ed15885 100644 --- a/src/index.ts +++ b/src/index.ts @@ -417,7 +417,7 @@ async function removeDockerPodmanImageStroage(): Promise { await getPodmanPath(), [ ...dockerPodmanOpts, "rmi", "-a", "-f" ] ); - await fs.promises.rmdir(dockerPodmanRoot, { recursive: true }); + await fs.promises.rm(dockerPodmanRoot, { recursive: true }); } catch (err) { core.warning(`Failed to remove podman image stroage ${dockerPodmanRoot}: ${err}`);