Skip to content

Commit

Permalink
refactor: let's not cleanup the latest folder (#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Nov 4, 2024
1 parent 7fc8d0d commit 16fd20d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/cleanup-gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 16fd20d

Please sign in to comment.