From 3f58382eeacaa13844a32b1499dd97073c0c134e Mon Sep 17 00:00:00 2001
From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com>
Date: Mon, 16 Mar 2020 13:56:58 +0900
Subject: [PATCH] chore: Print context for debug (#160)

* chore: Print context for debug
* fix: debug message
---
 src/main.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main.ts b/src/main.ts
index aff2040db..9492bdca4 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -12,6 +12,10 @@ export async function run(): Promise<void> {
     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
@@ -31,7 +35,7 @@ export async function run(): Promise<void> {
     }
 
     const remoteURL = await setTokens(inps);
-    core.debug(`[INFO] remoteURL: ${remoteURL}`);
+    core.debug(`remoteURL: ${remoteURL}`);
 
     const date = new Date();
     const unixTime = date.getTime();