Skip to content

Commit

Permalink
Fix check vars
Browse files Browse the repository at this point in the history
  • Loading branch information
usulpro committed Jun 24, 2024
1 parent 2b167c8 commit 9f60e31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rollout-tools/demo/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) => {
Expand All @@ -50,6 +53,8 @@ requiredEnvVars.forEach((envVar) => {
}
});

inputs.EMAIL = optional.EMAIL;

async function localRollout({ inputs, secrets }) {
const {
EMAIL: email,
Expand Down

0 comments on commit 9f60e31

Please sign in to comment.