diff --git a/src/modules/github.ts b/src/modules/github.ts index d7f0557..ac57b5f 100644 --- a/src/modules/github.ts +++ b/src/modules/github.ts @@ -2,7 +2,7 @@ import { Octokit } from "@octokit/rest"; export const createGitHubRepo = async (data: Record) => { - if(data.enableGit === false) return ""; + if(!data.enableGit) return ""; const token = data.GITHUB_ACCESS_TOKEN; const repoName = data.repoName; @@ -15,8 +15,8 @@ export const createGitHubRepo = async (data: Record) => { return response.data.clone_url; } catch (error) { - console.error(`Error when create repository on GitHub: ${error}`); - process.exit(1); + console.error(`Skipped - create repository on GitHub: ${error}`); + return "" } }; \ No newline at end of file