mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 22:56:54 +08:00
refactor: show info log always
This commit is contained in:
parent
d929bb99f7
commit
1e783ad705
@ -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)) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user