ci: changedFiles can be undefined

This commit is contained in:
Meghan Denny
2024-11-19 02:23:54 -08:00
committed by GitHub
parent 958e531cc5
commit fc94db1efb

View File

@@ -694,7 +694,7 @@ async function main() {
forceBuild = true;
}
for (const coref of [".buildkite/ci.mjs", "scripts/utils.mjs", "scripts/bootstrap.sh", "scripts/machine.mjs"]) {
if (changedFiles.includes(coref)) {
if (changedFiles && changedFiles.includes(coref)) {
console.log(" - Yes, because the list of changed files contains:", coref);
forceBuild = true;
ciFileChanged = true;