From 49f64c039f658a9c102e39a801b4631978456d55 Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Sun, 23 Jul 2023 16:22:06 -0400 Subject: [PATCH] Debug --- index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.ts b/index.ts index 1fbadb1..e214153 100644 --- a/index.ts +++ b/index.ts @@ -29,6 +29,13 @@ const execute = async ( const run = async () => { const requirementsContent = "rstfmt==0.0.13\n"; fs.writeFileSync("./requirements.txt", requirementsContent); + // type ls: + const { err, stdOut, stdErr } = await execute("ls", { silent: true }); + if (err) { + core.setFailed(stdErr); + } else { + core.info(stdOut); + } await execute("pip install -r requirements.txt", { silent: true });