We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b17176 commit 84a2a9cCopy full SHA for 84a2a9c
ephemeral/startup/action.yml
@@ -66,6 +66,7 @@ runs:
66
67
- name: Create preview environment
68
shell: bash
69
+ id: create-instance
70
run: |
71
autoLoadPod="${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}"
72
extensionAutoInstall="${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}"
@@ -111,3 +112,14 @@ runs:
111
112
113
run:
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'
0 commit comments