Skip to content

Commit 6bdec9c

Browse files
committed
Print envID for pr-deplomynet
1 parent d0eac93 commit 6bdec9c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pr-deployment.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
else
2424
echo "DEPLOYMENT_ID=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
2525
fi
26-
echo "DEPLOYMENT_ID=$DEPLOYMENT_ID"
26+
echo "DEPLOYMENT_ID=${{ env.DEPLOYMENT_ID }}"
2727
2828
- uses: actions/checkout@v3
2929
with:
@@ -68,9 +68,16 @@ jobs:
6868
# The GH actions bot is used by default if you didn't specify the two fields.
6969
# You can swap them out with your own user credentials.
7070
publish_branch: gh-pages
71+
enable_jekyll: true
7172

7273
- name: Add Comment to PR
74+
if: ${{ env.DEPLOYMENT_ID != 'manual-trigger' }}
7375
uses: thollander/actions-comment-pull-request@v2
7476
with:
7577
message: |
7678
Published at https://${{ github.repository_owner }}.github.io/operating-systems/${{ env.DEPLOYMENT_ID }}/
79+
80+
- name: Output Deployment URL
81+
if: ${{ env.DEPLOYMENT_ID == 'manual-trigger' }}
82+
run: |
83+
echo "The deployment is available at https://${{ github.repository_owner }}.github.io/operating-systems/${{ env.DEPLOYMENT_ID }}/"

0 commit comments

Comments
 (0)