mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 22:56:54 +08:00
chore: Print context for debug (#160)
* chore: Print context for debug * fix: debug message
This commit is contained in:
parent
c50f9fd17d
commit
3f58382eea
@ -12,6 +12,10 @@ export async function run(): Promise<void> {
|
|||||||
const inps: Inputs = getInputs();
|
const inps: Inputs = getInputs();
|
||||||
showInputs(inps);
|
showInputs(inps);
|
||||||
|
|
||||||
|
if (core.isDebug()) {
|
||||||
|
console.log(context);
|
||||||
|
}
|
||||||
|
|
||||||
const eventName = context.eventName;
|
const eventName = context.eventName;
|
||||||
if (eventName === 'pull_request' || eventName === 'push') {
|
if (eventName === 'pull_request' || eventName === 'push') {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
@ -31,7 +35,7 @@ export async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const remoteURL = await setTokens(inps);
|
const remoteURL = await setTokens(inps);
|
||||||
core.debug(`[INFO] remoteURL: ${remoteURL}`);
|
core.debug(`remoteURL: ${remoteURL}`);
|
||||||
|
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
const unixTime = date.getTime();
|
const unixTime = date.getTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user