Add environment setup instructions to README.md
This commit is contained in:
12
load_env.sh
Executable file
12
load_env.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Load environment variables from .env file
|
||||
|
||||
if [ -f .env ]; then
|
||||
export $(grep -v '^#' .env | xargs)
|
||||
echo "Environment variables loaded from .env"
|
||||
echo "GITHUB_TOKEN is set: ${GITHUB_TOKEN:0:10}..."
|
||||
else
|
||||
echo "Error: .env file not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user