Skip to content

Commit

Permalink
♻️ Add skipGeneratingWebsite option
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Feb 24, 2021
1 parent 906d179 commit 6770e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export interface UpptimeConfig {
};
runner?: string;
customStatusWebsitePackage?: string;
skipGeneratingWebsite?: boolean;
}

export interface SiteHistory {
Expand Down
1 change: 1 addition & 0 deletions src/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const generateSite = async () => {
if (!(await shouldContinue())) return;
let [owner, repo] = (process.env.GITHUB_REPOSITORY || "").split("/");
const config = await getConfig();
if (config.skipGeneratingWebsite) return;
const sitePackage = config.customStatusWebsitePackage || "@upptime/status-page";
const octokit = await getOctokit();
const repoDetails = await octokit.repos.get({ owner, repo });
Expand Down

0 comments on commit 6770e01

Please sign in to comment.