Skip to content

Commit 8a59838

Browse files
committed
[server] Don't skip prebuilds if .gitpod.yml has a 'before' task but no 'init' task
1 parent 8c2e1d1 commit 8a59838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/ee/src/prebuilds/prebuild-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class PrebuildManager {
257257
return false;
258258
}
259259

260-
const hasPrebuildTask = !!config.tasks && config.tasks.find((t) => !!t.init || !!t.prebuild);
260+
const hasPrebuildTask = !!config.tasks && config.tasks.find((t) => !!t.before || !!t.init || !!t.prebuild);
261261
if (!hasPrebuildTask) {
262262
return false;
263263
}

0 commit comments

Comments
 (0)