Skip to content

Instantly share code, notes, and snippets.

@willianantunes
Created June 16, 2021 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willianantunes/537da8fbcde9f38552e9ecdb038d73a8 to your computer and use it in GitHub Desktop.
Save willianantunes/537da8fbcde9f38552e9ecdb038d73a8 to your computer and use it in GitHub Desktop.
Import environment variables from a file (GitHub Actions
while read line; do
if [[ $line =~ ^([a-z]|[A-Z]).+ ]]; then
echo "Settings the following ==> $line"
echo "$line" >> $GITHUB_ENV
fi
done < .env.development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment