Skip to content

Commit

Permalink
♻️ Don't remove any custom workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Feb 24, 2021
1 parent f396af1 commit 8e777e7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/update-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ export const updateTemplate = async () => {
const [owner, repo] = (process.env.GITHUB_REPOSITORY || "").split("/");
const config = await getConfig();

// Remove the .github/workflows directory completely
await remove(join(".", ".github", "workflows"));
// Remove our workflows (not all workflows)
await remove(join(".", ".github", "workflows", "graphs.yml"));
await remove(join(".", ".github", "workflows", "response-time.yml"));
await remove(join(".", ".github", "workflows", "setup.yml"));
await remove(join(".", ".github", "workflows", "site.yml"));
await remove(join(".", ".github", "workflows", "summary.yml"));
await remove(join(".", ".github", "workflows", "update-template.yml"));
await remove(join(".", ".github", "workflows", "updates.yml"));
await remove(join(".", ".github", "workflows", "uptime.yml"));
console.log("Removed legacy .github/workflows");

// Clone and create workflows from this repo
Expand Down

0 comments on commit 8e777e7

Please sign in to comment.