Skip to content

Commit aac5906

Browse files
authored
Update Github - PR - Staging.yml
1 parent 1e85c5d commit aac5906

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/Github - PR - Staging.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- main
1010
workflow_dispatch:
1111

12+
env:
13+
WEBAPP_NAME: tjavagit1
14+
SLOT_NAME: pr-${{ github.event.number }}
15+
1216
jobs:
1317
build:
1418
runs-on: ubuntu-latest
@@ -48,3 +52,16 @@ jobs:
4852
slot-name: 'staging'
4953
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }}
5054
package: '*.jar'
55+
56+
57+
- name: Comment on PR with the preview link
58+
uses: mshick/add-pr-comment@v1
59+
with:
60+
message: |
61+
## Preview link: https://${{ env.WEBAPP_NAME }}-${{env.SLOT_NAME }}.azurewebsites.net
62+
63+
- Your changes have been deployed to the preview site. The preview site will update as you add more commits to this branch.
64+
- The preview link is shareable, but will be deleted when the pull request is merged or closed.
65+
> *This is an automated message.*
66+
repo-token: ${{ secrets.GITHUB_TOKEN }}
67+
repo-token-user-login: 'github-actions[bot]'

0 commit comments

Comments
 (0)