From 16fd20d2177dfd86782ce5ddd4529e5224e8d75c Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 4 Nov 2024 08:44:13 +0100 Subject: [PATCH] refactor: let's not cleanup the latest folder (#3408) --- .github/scripts/cleanup-gh-pages.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/cleanup-gh-pages.js b/.github/scripts/cleanup-gh-pages.js index 941639fe3c3..0715d0362bd 100644 --- a/.github/scripts/cleanup-gh-pages.js +++ b/.github/scripts/cleanup-gh-pages.js @@ -13,7 +13,8 @@ const removeOldFromPath = (isTag, data) => { ) { const dirsToDelete = FS.readdirSync(path) .filter((file) => !data.find((branch) => branch.name === file)) - .filter((file) => file !== 'main'); + // Let's not clean up specific folders + .filter((file) => !['main', 'latest'].includes(file)); if (dirsToDelete?.length > 0) { console.log( TAG,