Skip to content

Commit

Permalink
trying to figure what's wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper committed Aug 9, 2024
1 parent 18b46b6 commit 5f60e10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ephemeral/startup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ runs:
autoLoadPod="${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}"
extensionAutoInstall="${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}"
lifetime="${{ inputs.lifetime }}"
configuration='${{ inputs.configuration }}'
configuration="PERSISTENCE=1, SERVICES=s3"
echo "Creating preview environment with configuration: $configuration"
# Convert configuration to JSON format
IFS=',' read -r -a configArray <<< "$configuration"
envVarsJson=$(jq -n '{}')
Expand All @@ -84,9 +84,11 @@ runs:
value=${kv[1]// /}
envVarsJson=$(echo $envVarsJson | jq --arg key "$key" --arg value "$value" '. + {($key): $value}')
done
echo "Configuration JSON: $envVarsJson"
envVarsJson=$(echo $envVarsJson | jq --arg autoLoadPod "$autoLoadPod" --arg extensionAutoInstall "$extensionAutoInstall" '. + {AUTO_LOAD_POD: $autoLoadPod, EXTENSION_AUTO_INSTALL: $extensionAutoInstall}')
echo "*** Configuration ***"
echo $envVarsJson
list_response=$(curl -X GET \
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
-H "content-type: application/json" \
Expand Down

0 comments on commit 5f60e10

Please sign in to comment.