File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 8585 needs : [checks]
8686 if : ${{ needs.checks.outputs.forked_workflow == 'false' }}
8787 runs-on : ubuntu-24.04
88+ outputs :
89+ PREVIEW_URL : ${{ steps.summary.outputs.PREVIEW_URL }}
8890 env :
8991 # Remapping of inputs to envs
9092 PRODUCTION_URL_PATH : ${{inputs.production_url_path}}
@@ -349,6 +351,7 @@ jobs:
349351
350352 - name : Summary
351353 # TODO(dani): Extract this into a reusable Markdown template for comments and summaries?
354+ id : summary
352355 run : |
353356 echo "### Deployment Summary" >> $GITHUB_STEP_SUMMARY
354357 echo "" >> $GITHUB_STEP_SUMMARY
@@ -357,8 +360,11 @@ jobs:
357360 echo "| Deployment environment | \`${DEPLOYMENT_ENV}\`|" >> $GITHUB_STEP_SUMMARY
358361 if [[ "${DEPLOYMENT_ENV}" == "preview" ]]; then
359362 echo "| Preview URL | [https://${DOMAIN_PREVIEW}${PREVIEW_URL_PATH}/${PR_NUMBER}/](https://${DOMAIN_PREVIEW}${PREVIEW_URL_PATH}/${PR_NUMBER}/) |" >> $GITHUB_STEP_SUMMARY
363+ echo "PREVIEW_URL=https://${DOMAIN_PREVIEW}${PREVIEW_URL_PATH}/${PR_NUMBER}/" >> $GITHUB_OUTPUT
360364 else
361365 echo "| Production URL | [https://${DEPLOYMENT_DOMAIN}${PRODUCTION_URL_PATH}](https://${DEPLOYMENT_DOMAIN}${PRODUCTION_URL_PATH}) |" >> $GITHUB_STEP_SUMMARY
366+ echo "PREVIEW_URL=https://${DEPLOYMENT_DOMAIN}${PRODUCTION_URL_PATH}" >> $GITHUB_OUTPUT
362367 fi
368+
363369
364370 # TODO(dani): Add more details to the summary
You can’t perform that action at this time.
0 commit comments