From 735d2508534ac1bb8b90d6881447476555bccdbf Mon Sep 17 00:00:00 2001 From: GitHub Actions <> Date: Sun, 23 Jul 2023 16:23:38 -0400 Subject: [PATCH] debug aGAIN --- build/index.js | 1 + index.ts | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/build/index.js b/build/index.js index 39a5b3a..7b2def7 100644 --- a/build/index.js +++ b/build/index.js @@ -53,6 +53,7 @@ const execute = async (command, options = {}) => { const run = async () => { const requirementsContent = "rstfmt==0.0.13\n"; fs.writeFileSync("./requirements.txt", requirementsContent); + await execute("ls"); // For debugging await execute("pip install -r requirements.txt", { silent: true }); const filesPattern = core.getInput("files") || "**/*.rst"; const commitString = core.getInput("commit") || "true"; diff --git a/index.ts b/index.ts index e214153..7bd7cd0 100644 --- a/index.ts +++ b/index.ts @@ -29,13 +29,7 @@ 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("ls"); // For debugging await execute("pip install -r requirements.txt", { silent: true });