Skip to content

Commit e431bdf

Browse files
committed
fixes
1 parent 61213b9 commit e431bdf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy-to-control-plane.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ jobs:
9292
script: |
9393
const success = '${{ steps.delete.outcome }}' === 'success';
9494
const message = success
95-
? '✅ Review app successfully deleted'
95+
? [
96+
'✅ Review app successfully deleted',
97+
'',
98+
'⚡ [Control Plane Console](https://console.cpln.io/console/org/' + process.env.CPLN_ORG + '/gvc/' + process.env.APP_NAME + '/workload)'
99+
].join('\n')
96100
: '❌ Review app deletion failed';
97101
98102
await github.rest.issues.updateComment({
@@ -154,7 +158,9 @@ jobs:
154158
if: steps.determine_action.outputs.action == 'deploy'
155159
uses: ./.github/actions/build-docker-image
156160
with:
157-
github_token: ${{ secrets.GITHUB_TOKEN }}
161+
app_name: ${{ env.APP_NAME }}
162+
org: ${{ env.CPLN_ORG }}
163+
commit: ${{ github.event.comment.body && steps.getRef.outputs.PR_SHA || github.sha }}
158164

159165
- name: Deploy to Control Plane
160166
if: steps.determine_action.outputs.action == 'deploy'
@@ -205,6 +211,8 @@ jobs:
205211
'',
206212
'🌐 Rails App: [' + railsUrl + '](' + railsUrl + ')',
207213
'',
214+
'⚡ [Control Plane Console for Review App](https://console.cpln.io/console/org/' + process.env.CPLN_ORG + '/gvc/' + process.env.APP_NAME + '/workload)',
215+
'',
208216
'[View Workflow Status](' + workflowUrl + ')'
209217
].join('\n');
210218

0 commit comments

Comments
 (0)