Skip to content

ok-to-preview-command #173

ok-to-preview-command

ok-to-preview-command #173

name: deploy-preview
on:
repository_dispatch:
types: [ok-to-preview-command]
jobs:
deploy-preview:
runs-on: ubuntu-latest
if:
github.event_name == 'repository_dispatch' &&
github.event.client_payload.slash_command.args.named.sha != '' &&
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.args.named.sha)
steps:
- name: PR checkout
uses: actions/checkout@v2
with:
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'
submodules: true
- name: Deploy preview site
uses: cssjpn/blog-gh-actions/deploy-preview@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
azure-storage-connection-string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
preview-base-url: "https://jpazureidblogstorage.z5.web.core.windows.net/"