From 5f60e10e488f9cd20ae3eccf76c21b2089f04325 Mon Sep 17 00:00:00 2001 From: HarshCasper Date: Fri, 9 Aug 2024 21:14:23 +0530 Subject: [PATCH] trying to figure what's wrong --- ephemeral/startup/action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ephemeral/startup/action.yml b/ephemeral/startup/action.yml index 97e0dc9..cd92a1a 100644 --- a/ephemeral/startup/action.yml +++ b/ephemeral/startup/action.yml @@ -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 '{}') @@ -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" \