chore: Print context for debug (#160)

* chore: Print context for debug
* fix: debug message
This commit is contained in:
Shohei Ueda 2020-03-16 13:56:58 +09:00 committed by GitHub
parent c50f9fd17d
commit 3f58382eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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();