Skip to content

Commit 69485ba

Browse files
author
Triona Doyle
committed
fix: load .env variables in bash script for CI/CD compatibility
Signed-off-by: Triona Doyle <bot@example.com>
1 parent 23c8791 commit 69485ba

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/ui-e2e/run-ui-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
22

3+
if [ -f .env ]; then
4+
echo "Loading variables from .env file..."
5+
set -a #export all variables
6+
source .env
7+
set +a # stop automatically exporting
8+
fi
9+
310
#making sure we are in the correct dir
411
cd "$(dirname "$0")" || exit 1
512

0 commit comments

Comments
 (0)