refactor: show info log always

This commit is contained in:
peaceiris committed 2020-10-20 16:40:35 +09:00
1 parent d929bb99f7
commit 1e783ad705
2 files changed
+2 -5

No files matched your search

+1 -4
View File
@@ -39,10 +39,7 @@ export async function copyAssets(
): Promise<void> {
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)) {
+1 -1
View File
@@ -25,7 +25,7 @@ export async function getWorkDirName(unixTime: string): Promise<string> {
export async function createDir(dirPath: string): Promise<void> {
await io.mkdirP(dirPath);
core.debug(`Created directory ${dirPath}`);
core.info(`[INFO] Created directory ${dirPath}`);
return;
}