This commit is contained in:
Yoann Chaudet
2024-04-29 13:20:27 -07:00
parent 252e935e86
commit 1e15901e1c
+2 -2
View File
@@ -156,11 +156,11 @@ async function checkWorkflow(
await exec("git", ["checkout", "ghes"]);
// In order to sync from main, we might need to remove some workflows, add some
// and modify others. The lazy approach is to delete all workflows first, and then
// and modify others. The lazy approach is to delete all workflows first (except from read-only folders), and then
// just bring the compatible ones over from the main branch. We let git figure out
// whether it's a deletion, add, or modify and commit the new state.
console.log("Remove all workflows");
await exec("rm", ["-fr", ...settings.folders]);
await exec("rm", ["-fr", ...(settings.folders.filter(x => !settings.readOnlyFolders.includes(x)))]);
await exec("rm", ["-fr", "../../icons"]);
// Ignore compatible workflows in a read-only folder