From 30acb609a847a96e034c27ce4b16fd38e1167af4 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Mar 2020 13:44:08 +0900 Subject: [PATCH 1/2] chore: Print context for debug --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index aff2040db..9fb3dc86d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,6 +12,10 @@ export async function run(): Promise { const inps: Inputs = getInputs(); showInputs(inps); + if (core.isDebug()) { + console.log(context); + } + const eventName = context.eventName; if (eventName === 'pull_request' || eventName === 'push') { // eslint-disable-next-line @typescript-eslint/no-explicit-any From 745d99dc3d487760773261168cca28dfa16f1211 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Mar 2020 13:47:55 +0900 Subject: [PATCH 2/2] fix: debug message --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 9fb3dc86d..9492bdca4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -35,7 +35,7 @@ export async function run(): Promise { } const remoteURL = await setTokens(inps); - core.debug(`[INFO] remoteURL: ${remoteURL}`); + core.debug(`remoteURL: ${remoteURL}`); const date = new Date(); const unixTime = date.getTime();