Skip to content

Commit 500b421

Browse files
committed
add CODEOWNERS, use intermediate env var for PR body
1 parent e10655a commit 500b421

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.github/ @TimHess @bart-vmware

.github/workflows/build-and-stage.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
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

0 commit comments

Comments
 (0)