From 8459a4097d34bfd152600eda3cb2c96b58f5d850 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Mon, 30 May 2022 15:20:18 +0200 Subject: [PATCH] [server] Don't skip prebuilds if .gitpod.yml has a 'before' task but no 'init' task --- components/server/ee/src/prebuilds/prebuild-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/server/ee/src/prebuilds/prebuild-manager.ts b/components/server/ee/src/prebuilds/prebuild-manager.ts index 0eac0cc1b5605c..3f8b3b3272e8a5 100644 --- a/components/server/ee/src/prebuilds/prebuild-manager.ts +++ b/components/server/ee/src/prebuilds/prebuild-manager.ts @@ -257,7 +257,7 @@ export class PrebuildManager { return false; } - const hasPrebuildTask = !!config.tasks && config.tasks.find((t) => !!t.init || !!t.prebuild); + const hasPrebuildTask = !!config.tasks && config.tasks.find((t) => !!t.before || !!t.init || !!t.prebuild); if (!hasPrebuildTask) { return false; }