Skip to content

Merge smart camera web #66

Merge smart camera web

Merge smart camera web #66

name: share-preview-url
on:
pull_request:
types:
- opened
- ready_for_review
jobs:
comment-on-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get dest dir for camera-web
id: get_dest_dir_camera_web
working-directory: ./smart-camera-web
run: echo "DEST_DIR_CAMERA_WEB=js/preview-$GITHUB_HEAD_REF" >> "$GITHUB_ENV"
- name: get dest dir for hosted-web
id: get_dest_dir_hosted_web
working-directory: ./hosted-web-integration
run: echo "DEST_DIR_HOSTED_WEB=inline/preview-$GITHUB_HEAD_REF" >> "$GITHUB_ENV"
- name: share preview urls as PR comment
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: |
This branch has been deployed to s3 / cloudfront.
✅ Preview URL for Smart Camera Web:
https://cdn.smileidentity.com/${{ env.DEST_DIR_CAMERA_WEB }}/smart-camera-web.js
✅ Preview URL for Hosted Web Integration:
https://cdn.smileidentity.com/${{ env.DEST_DIR_HOSTED_WEB }}/js/script.js