From afdf0c0a6772ea0bc8c6af61d5dc2df8823c85de Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:20:33 +0100 Subject: [PATCH] chore: debug build cmd and args Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.ts b/src/main.ts index eb5edc9..05a5981 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,6 +17,8 @@ actionsToolkit.run( // main async () => { const inputs: context.Inputs = await context.getInputs(); + core.debug(`inputs: ${JSON.stringify(inputs)}`); + const toolkit = new Toolkit(); await core.group(`GitHub Actions runtime token ACs`, async () => { @@ -73,7 +75,12 @@ actionsToolkit.run( }); const args: string[] = await context.getArgs(inputs, toolkit); + core.debug(`context.getArgs: ${JSON.stringify(args)}`); + const buildCmd = await toolkit.buildx.getCommand(args); + core.debug(`buildCmd.command: ${buildCmd.command}`); + core.debug(`buildCmd.args: ${JSON.stringify(buildCmd.args)}`); + await Exec.getExecOutput(buildCmd.command, buildCmd.args, { ignoreReturnCode: true }).then(res => {