refactor: show info log always

This commit is contained in:
peaceiris 2020-10-20 16:40:35 +09:00
parent d929bb99f7
commit 1e783ad705
No known key found for this signature in database
GPG Key ID: 5868468A8EBA64EC
2 changed files with 2 additions and 5 deletions

View File

@ -39,10 +39,7 @@ export async function copyAssets(
): Promise<void> { ): Promise<void> {
core.info(`[INFO] prepare publishing assets`); core.info(`[INFO] prepare publishing assets`);
if (!fs.existsSync(destDir)) { !fs.existsSync(destDir) && (await createDir(destDir));
core.info(`[INFO] create ${destDir}`);
await createDir(destDir);
}
const dotGitPath = path.join(publishDir, '.git'); const dotGitPath = path.join(publishDir, '.git');
if (fs.existsSync(dotGitPath)) { if (fs.existsSync(dotGitPath)) {

View File

@ -25,7 +25,7 @@ export async function getWorkDirName(unixTime: string): Promise<string> {
export async function createDir(dirPath: string): Promise<void> { export async function createDir(dirPath: string): Promise<void> {
await io.mkdirP(dirPath); await io.mkdirP(dirPath);
core.debug(`Created directory ${dirPath}`); core.info(`[INFO] Created directory ${dirPath}`);
return; return;
} }