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; }