File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -327,12 +327,6 @@ jobs:
327327 org : ${{ vars.CPLN_ORG_STAGING }}
328328 commit : ${{ env.PR_SHA }}
329329 PR_NUMBER : ${{ env.PR_NUMBER }}
330-
331- - name : Confirm Auth
332- run : cpln profile get
333-
334- - name : Confirm Workloads
335- run : cpln workload get --gvc ${{ env.APP_NAME }} | tee
336330
337331 - name : Update Status - Deploying
338332 uses : actions/github-script@v7
@@ -359,13 +353,17 @@ jobs:
359353 if : env.DO_DEPLOY != 'false'
360354 run : cpflow deploy-image -a ${{ env.APP_NAME }} --run-release-phase --org ${{ vars.CPLN_ORG_STAGING }} --verbose
361355
356+ - name : Retrieve App URL
357+ id : workload
358+ run : echo "WORKLOAD_URL=${cpln workload get rails --gvc ${{ env.APP_NAME }} | tee | grep -oP 'https://[^[:space:]]*\.cpln\.app(?=\s|$)' | head -n1}" >> "$GITHUB_OUTPUT"
359+
362360 - name : Update Status - Deployment Complete
363361 if : env.DO_DEPLOY != 'false'
364362 uses : actions/github-script@v7
365363 with :
366364 script : |
367365 const prNumber = process.env.PR_NUMBER;
368- const appUrl = process.env.APP_URL ;
366+ const appUrl = ${{ steps.workload.outputs.WORKLOAD_URL }} ;
369367 const workflowUrl = process.env.WORKFLOW_URL;
370368 const isSuccess = '${{ job.status }}' === 'success';
371369
You can’t perform that action at this time.
0 commit comments