-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate if all required env vars are supplied. #12879
Conversation
|
||
# Exit with an error if any variables were missing | ||
if [ $missing_vars -ne 0 ]; then | ||
echo "Total missing environment variables: $missing_vars" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might not be obvious to someone what vars they need to set from this message. WDYT about printing the $required_vars
here or printing the path to the .env.example
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, I updated the script to print more instructions
…rsch.crib-refactor
Validate if all required env vars are supplied
47a9f65
to
fe803a1
Compare
Quality Gate passedIssues Measures |
Validate if all required env vars are supplied.
There is a similar PR in the ccip repo already: smartcontractkit/ccip#735