Skip to content
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

Improved UX for ./bin/get-secrets.sh with more output and error handling #218

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

chapati23
Copy link
Contributor

Description

Some minor updates to npm run secrets:get with more output. Also handling the case of non-existing .env file a bit better now by copying .env.example into .env before pulling the secret values.

How to test

  • Clone this branch to your machine
  • Back up your current .env via mv .env .env.bak
  • Run npm run secrets:get with non-existing .env and see that it works
  • Re-run npm run secrets:get with existing .env and see that it works
  • Manually add a few empty values from your backup .env.bak and re-run npm run secrets:get and see that it still works
  • Review the code

@chapati23 chapati23 merged commit 660e96c into main Sep 23, 2024
1 check passed
@chapati23 chapati23 deleted the chore/update-get-secrets-script branch September 23, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants