From 9f60e3108acd74105c5d2e49ca154e02e2f3f96e Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Tue, 25 Jun 2024 00:18:23 +0700 Subject: [PATCH] Fix check vars --- src/rollout-tools/demo/cli.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rollout-tools/demo/cli.mjs b/src/rollout-tools/demo/cli.mjs index dd80e98..19756b9 100755 --- a/src/rollout-tools/demo/cli.mjs +++ b/src/rollout-tools/demo/cli.mjs @@ -27,7 +27,6 @@ const secrets = { }; const inputs = { - EMAIL: process.env.EMAIL, SANITY_ORGANIZATION_ID: process.env.SANITY_ORGANIZATION_ID, VERCEL_FR_TEAM_ID: process.env.VERCEL_FR_TEAM_ID, VERCEL_FR_TEAM_SLUG: process.env.VERCEL_FR_TEAM_SLUG, @@ -41,6 +40,10 @@ const inputs = { REPO_TYPE: process.env.REPO_TYPE, }; +const optional = { + EMAIL: process.env.EMAIL, +}; + const requiredEnvVars = Object.keys({ ...secrets, ...inputs }); requiredEnvVars.forEach((envVar) => { @@ -50,6 +53,8 @@ requiredEnvVars.forEach((envVar) => { } }); +inputs.EMAIL = optional.EMAIL; + async function localRollout({ inputs, secrets }) { const { EMAIL: email,