From 1e783ad7058da4dcad593f8c940730861d422de7 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Tue, 20 Oct 2020 16:40:35 +0900 Subject: [PATCH] refactor: show info log always --- src/git-utils.ts | 5 +---- src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/git-utils.ts b/src/git-utils.ts index d30fbb1..f9f3331 100644 --- a/src/git-utils.ts +++ b/src/git-utils.ts @@ -39,10 +39,7 @@ export async function copyAssets( ): Promise { core.info(`[INFO] prepare publishing assets`); - if (!fs.existsSync(destDir)) { - core.info(`[INFO] create ${destDir}`); - await createDir(destDir); - } + !fs.existsSync(destDir) && (await createDir(destDir)); const dotGitPath = path.join(publishDir, '.git'); if (fs.existsSync(dotGitPath)) { diff --git a/src/utils.ts b/src/utils.ts index eaf457e..2ac97d5 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -25,7 +25,7 @@ export async function getWorkDirName(unixTime: string): Promise { export async function createDir(dirPath: string): Promise { await io.mkdirP(dirPath); - core.debug(`Created directory ${dirPath}`); + core.info(`[INFO] Created directory ${dirPath}`); return; }