mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-02 09:31:36 +00:00
refactor: show info log always
This commit is contained in:
2 files changed
+2
-5
No files matched your search
+1
-4
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user