File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1+ /.github / @ TimHess @ bart-vmware
Original file line number Diff line number Diff line change 3434 fetch-depth : 0 # avoid shallow clone so nbgv can do its work.
3535
3636 - name : Detect template source from PR body
37+ env :
38+ PullRequestBody : ${{ github.event.pull_request.body }}
3739 run : |
3840 cat << EOF > /tmp/pull_request_body.txt
39- ${{ github.event.pull_request.body }}
41+ $PullRequestBody
4042 EOF
4143
4244 CheckoutTarget=$(grep "template_checkout_target=" /tmp/pull_request_body.txt | awk -F= '{print $2}')
@@ -72,18 +74,18 @@ jobs:
7274 - name : Deploy to staging slot
7375 uses : azure/webapps-deploy@v3
7476 id : deploy-to-webapp
75- with :
77+ with :
7678 app-name : ${{ vars.AZURE_WEBAPP_NAME }}
7779 images : ${{ vars.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
7880 slot-name : ${{ env.SLOT_NAME }}
79-
81+
8082 - name : If PR, comment with the preview link
8183 if : ${{ github.event_name == 'pull_request' }}
8284 uses : mshick/add-pr-comment@v2
8385 with :
8486 message : |
85- ## Preview link: https://${{ vars.AZURE_WEBAPP_NAME }}-${{ env.SLOT_NAME }}.azurewebsites.net
86-
87+ ## Preview link: https://${{ vars.AZURE_WEBAPP_NAME }}-${{ env.SLOT_NAME }}.azurewebsites.net
88+
8789 - Your changes have been deployed to the preview site. The preview site will update as you add more commits to this branch.
8890 - The preview link is shareable, but will be deleted when the pull request is merged or closed.
8991
You can’t perform that action at this time.
0 commit comments