Skip to content

Commit ef89543

Browse files
committed
trying to figure what's wrong
1 parent 18b46b6 commit ef89543

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: ephemeral/startup/action.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ inputs:
2323
description: 'The lifetime of the ephemeral instance, how long the instance should be available for'
2424
required: false
2525
default: '30'
26-
configuration:
27-
description: 'Configuration for the LocalStack environment to be created'
26+
ephemeral-configuration:
27+
description: 'Configuration for the ephemeral LocalStack environment to be created'
2828
required: false
2929
default: ''
3030

@@ -73,8 +73,8 @@ runs:
7373
autoLoadPod="${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}"
7474
extensionAutoInstall="${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}"
7575
lifetime="${{ inputs.lifetime }}"
76-
configuration='${{ inputs.configuration }}'
77-
76+
configuration="${{ inputs.ephemeral-configuration }}"
77+
echo "Creating preview environment with configuration: $configuration"
7878
# Convert configuration to JSON format
7979
IFS=',' read -r -a configArray <<< "$configuration"
8080
envVarsJson=$(jq -n '{}')
@@ -84,9 +84,11 @@ runs:
8484
value=${kv[1]// /}
8585
envVarsJson=$(echo $envVarsJson | jq --arg key "$key" --arg value "$value" '. + {($key): $value}')
8686
done
87+
echo "Configuration JSON: $envVarsJson"
8788
8889
envVarsJson=$(echo $envVarsJson | jq --arg autoLoadPod "$autoLoadPod" --arg extensionAutoInstall "$extensionAutoInstall" '. + {AUTO_LOAD_POD: $autoLoadPod, EXTENSION_AUTO_INSTALL: $extensionAutoInstall}')
89-
90+
echo "*** Configuration ***"
91+
echo $envVarsJson
9092
list_response=$(curl -X GET \
9193
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
9294
-H "content-type: application/json" \

0 commit comments

Comments
 (0)