From e71f56e4626f36334e6da6a87465558be5f381cf Mon Sep 17 00:00:00 2001 From: Nischal Shrestha Date: Wed, 4 Sep 2024 13:24:07 +0545 Subject: [PATCH] fix: path for .env --- .github/workflows/frontend-build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index 4df02121b1..1d5a421ae2 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -104,18 +104,16 @@ jobs: env: VARS_CONTEXT: ${{ toJson(vars) }} SECRETS_CONTEXT: ${{ toJson(secrets) }} + shell: bash run: | - # Parse JSON with multiline strings to_envs() { jq -r "to_entries[] | \"\(.key)=\(.value)\""; } - # Create .env file from VARS_CONTEXT if [ "${VARS_CONTEXT}" != "null" ]; then - echo "${VARS_CONTEXT}" | to_envs > ${{ inputs.context }}/.env + echo "${VARS_CONTEXT}" | to_envs > ${{ inputs.context }}/.env fi - # Append Secrets to .env file from SECRETS_CONTEXT if [ "${SECRETS_CONTEXT}" != "null" ]; then - echo "\n${SECRETS_CONTEXT}" | to_envs >> ${{ inputs.context }}/.env + echo "\n${SECRETS_CONTEXT}" | to_envs >> ${{ inputs.context }}/.env fi - id: build_frontend