Skip to content

Commit 1ab8311

Browse files
authored
Merge pull request #147 from Aijeyomah/update-snapshot-email-api
update API to generate email snapshot
2 parents aa7e994 + 9c105a8 commit 1ab8311

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ runs:
166166
working-directory: action/
167167
shell: bash
168168
- name: Send Snapshot Email
169-
if: ${{ inputs.email && env.RESOURCE_URL != false }}
169+
if: ${{ inputs.email && inputs.assetLocation }}
170170
run: |
171-
MESHERY_CLOUD_API_URL="https://cloud.layer5.io" MESHERY_TOKEN="${{ inputs.mesheryToken }}" EMAIL="${{ inputs.email }}" IMAGE_URI="${{ env.RESOURCE_URL }}" bash ./action/sendSnapshotEmail.sh
171+
MESHERY_CLOUD_API_URL="https://cloud.layer5.io" MESHERY_TOKEN="${{ inputs.mesheryToken }}" EMAIL="${{ inputs.email }}" IMAGE_URI="${{ inputs.assetLocation }}" bash ./action/sendSnapshotEmail.sh
172172
shell: bash
173173
- name: Comment Success Status
174174
if: ${{ success() && inputs.skipComment == 'false' && inputs.prNumber != '0' && env.RESOURCE_URL != false }}

sendSnapshotEmail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# IMAGE_URI: The URI of the snapshot image
77

88

9-
response=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$MESHERY_CLOUD_API_URL/api/snapshot/email" \
9+
response=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$MESHERY_CLOUD_API_URL/api/integrations/snapshot/email" \
1010
-H 'Accept: application/json' \
1111
-H 'Connection: close' \
1212
-H 'Content-Type: application/json' \

0 commit comments

Comments
 (0)