File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2525 (github.event_name == 'pull_request') ||
2626 (github.event_name == 'issue_comment' &&
2727 github.event.issue.pull_request &&
28- github.event.comment.body == '/deploy')
28+ github.event.comment.body == '/deploy-review-app ')
2929 runs-on : ubuntu-latest
3030 permissions :
3131 contents : read
8080 uses : actions/github-script@v7
8181 with :
8282 script : |
83- eval(process.env.GET_CONSOLE_LINK);
83+ function getConsoleLink(prNumber) {
84+ return `[Control Plane Console](https://console.cpln.io/org/${process.env.CPLN_ORG}/workloads/${process.env.APP_NAME})`;
85+ }
8486
8587 await github.rest.issues.updateComment({
8688 owner: context.repo.owner,
@@ -109,7 +111,9 @@ jobs:
109111 uses : actions/github-script@v7
110112 with :
111113 script : |
112- eval(process.env.GET_CONSOLE_LINK);
114+ function getConsoleLink(prNumber) {
115+ return `[Control Plane Console](https://console.cpln.io/org/${process.env.CPLN_ORG}/workloads/${process.env.APP_NAME})`;
116+ }
113117
114118 const isSuccess = '${{ job.status }}' === 'success';
115119 const railsUrl = '${{ steps.deploy.outputs.rails_url }}';
You can’t perform that action at this time.
0 commit comments