Skip to content

Commit 927533e

Browse files
committed
delete-on-pr-close
1 parent e83b55c commit 927533e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
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
@@ -80,7 +80,9 @@ jobs:
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 }}';

0 commit comments

Comments
 (0)