Skip to content

Commit

Permalink
chore: Print context for debug (#160)
Browse files Browse the repository at this point in the history
* chore: Print context for debug
* fix: debug message
  • Loading branch information
peaceiris authored Mar 16, 2020
1 parent c50f9fd commit 3f58382
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 3f58382

Please sign in to comment.