File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ inputs:
23
23
description : ' The lifetime of the ephemeral instance, how long the instance should be available for'
24
24
required : false
25
25
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'
28
28
required : false
29
29
default : ' '
30
30
73
73
autoLoadPod="${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}"
74
74
extensionAutoInstall="${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}"
75
75
lifetime="${{ inputs.lifetime }}"
76
- configuration=' ${{ inputs.configuration }}'
77
-
76
+ configuration=" ${{ inputs.ephemeral- configuration }}"
77
+ echo "Creating preview environment with configuration: $configuration"
78
78
# Convert configuration to JSON format
79
79
IFS=',' read -r -a configArray <<< "$configuration"
80
80
envVarsJson=$(jq -n '{}')
84
84
value=${kv[1]// /}
85
85
envVarsJson=$(echo $envVarsJson | jq --arg key "$key" --arg value "$value" '. + {($key): $value}')
86
86
done
87
+ echo "Configuration JSON: $envVarsJson"
87
88
88
89
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
90
92
list_response=$(curl -X GET \
91
93
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
92
94
-H "content-type: application/json" \
You can’t perform that action at this time.
0 commit comments