Skip to content

Commit 91b1c31

Browse files
committed
print logs of ephemeral instance after executing preview-cmd
1 parent 5b17176 commit 91b1c31

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ephemeral/startup/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,13 @@ runs:
111111
shell: bash
112112
run:
113113
${{ inputs.preview-cmd }}
114+
115+
- name: Print logs of ephemeral instance
116+
shell: bash
117+
run: |
118+
log_response=$(curl -X GET \
119+
-H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
120+
-H "content-type: application/json" \
121+
https://api.localstack.cloud/v1/compute/instances/$previewName/logs)
122+
123+
echo $log_response

0 commit comments

Comments
 (0)