File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 66
66
67
67
- name : Create preview environment
68
68
shell : bash
69
+ id : create-instance
69
70
run : |
70
71
autoLoadPod="${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}"
71
72
extensionAutoInstall="${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}"
@@ -111,3 +112,14 @@ runs:
111
112
shell : bash
112
113
run :
113
114
${{ inputs.preview-cmd }}
115
+
116
+ - name : Print logs of ephemeral instance
117
+ if : ${{ !cancelled() && steps.create-instance.outcome == 'success' }}
118
+ shell : bash
119
+ run : |
120
+ log_response=$(curl -X GET \
121
+ -H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
122
+ -H "content-type: application/json" \
123
+ https://api.localstack.cloud/v1/compute/instances/$previewName/logs)
124
+
125
+ echo "$log_response" | jq -r '.[].content'
You can’t perform that action at this time.
0 commit comments