From 83bd37ca121a8fbdfad98624c3af244fa9bd8d4b Mon Sep 17 00:00:00 2001 From: ddorando <87425418+ddorando@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:23:41 +0300 Subject: [PATCH] even more debug logging --- src/create-pull-request.ts | 1 + src/utils.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/create-pull-request.ts b/src/create-pull-request.ts index 9535b7b..bf5eb9c 100644 --- a/src/create-pull-request.ts +++ b/src/create-pull-request.ts @@ -265,6 +265,7 @@ export async function createPullRequest(inputs: Inputs): Promise { } } } catch (error) { + console.log(error) core.setFailed(utils.getErrorMessage(error)) } finally { // Remove auth and restore persisted auth config if it existed diff --git a/src/utils.ts b/src/utils.ts index c84532a..92ba36c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -147,6 +147,9 @@ export function fileExistsSync(path: string): boolean { throw new Error("Arg 'path' must not be empty") } + console.log(path) + console.log(fs.realpathSync(path)) + let stats: fs.Stats try { stats = fs.statSync(fs.realpathSync(path))