Skip to content

Commit

Permalink
testt
Browse files Browse the repository at this point in the history
Signed-off-by: Evaldo Felipe <[email protected]>
  • Loading branch information
evaldofelipe committed Jan 10, 2025
1 parent 6bba313 commit d704522
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/pre-build-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
set -o nounset

FILE_REMOTE="projects/across/frontend/outputs/output.env"
FILE_PATH="/tmp/output.env"
FILE_PATH="src/output.env"

if [ -n "${GH_TOKEN}" ]; then
echo "Getting env files from config repo..."
curl -o ${FILE_PATH} "https://${GH_TOKEN}@${GIT_ENV_REPO}/${FILE_REMOTE}"
echo "Updated data at ${FILE_PATH}"
echo "exporting.."
cat /tmp/output.env
source /tmp/output.env

cat ${FILE_PATH}
source ${FILE_PATH}
echo $GIT_ENV_EXPORTED
else
echo "No env exported"
Expand Down

0 comments on commit d704522

Please sign in to comment.