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 25
25
(github.event_name == 'pull_request') ||
26
26
(github.event_name == 'issue_comment' &&
27
27
github.event.issue.pull_request &&
28
- github.event.comment.body == '/deploy')
28
+ github.event.comment.body == '/deploy-review-app ')
29
29
runs-on : ubuntu-latest
30
30
permissions :
31
31
contents : read
80
80
uses : actions/github-script@v7
81
81
with :
82
82
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
+ }
84
86
85
87
await github.rest.issues.updateComment({
86
88
owner: context.repo.owner,
@@ -109,7 +111,9 @@ jobs:
109
111
uses : actions/github-script@v7
110
112
with :
111
113
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
+ }
113
117
114
118
const isSuccess = '${{ job.status }}' === 'success';
115
119
const railsUrl = '${{ steps.deploy.outputs.rails_url }}';
You can’t perform that action at this time.
0 commit comments