Skip to content

Commit a225f7b

Browse files
committed
Restore pullpreview summary URLs
1 parent ac8adae commit a225f7b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pullpreview.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,26 @@ jobs:
8686
HETZNER_CA_KEY: ${{ secrets.HETZNER_CA_KEY }}
8787
OPENPROJECT_ENTERPRISE_TOKEN: ${{ secrets.OPENPROJECT_ENTERPRISE_TOKEN }}
8888

89+
- name: Add secondary URLs to job summary
90+
if: steps.pullpreview.outputs.live == 'true'
91+
shell: bash
92+
run: |
93+
set -euo pipefail
94+
preview_url="${{ steps.pullpreview.outputs.url }}"
95+
preview_host="${preview_url#https://}"
96+
preview_host="${preview_host#http://}"
97+
preview_host="${preview_host%%/*}"
98+
preview_host="${preview_host%%:*}"
99+
100+
{
101+
echo ""
102+
echo "### Preview endpoints"
103+
echo ""
104+
echo "- Main FQDN: https://${preview_host}"
105+
echo "- Nextcloud: https://nextcloud.${preview_host}"
106+
echo "- Keycloak: https://keycloak.${preview_host}/realms/opnc"
107+
} >> "${GITHUB_STEP_SUMMARY}"
108+
89109
- name: Validate preview URLs
90110
if: steps.pullpreview.outputs.live == 'true'
91111
shell: bash

0 commit comments

Comments
 (0)