Skip to content

Commit 1ca2e06

Browse files
committed
fix comments
1 parent a2f8923 commit 1ca2e06

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

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

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,13 @@ jobs:
230230
owner: context.repo.owner,
231231
repo: context.repo.repo,
232232
issue_number: process.env.PR_NUMBER,
233-
body: '🚀 Starting deployment process...\n\n' + process.env.CONSOLE_LINK
233+
body: [
234+
`🏗️ Building Docker image for PR [#${process.env.PR_NUMBER}](${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}/pull/${process.env.PR_NUMBER}), commit [${context.sha.substring(0, 7)}](${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}/commit/${context.sha})`,
235+
'',
236+
`📝 [View Build Logs](${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/job/${context.job})`,
237+
'',
238+
process.env.CONSOLE_LINK
239+
].join('\n')
234240
});
235241
core.setOutput('comment-id', result.data.id);
236242
@@ -317,25 +323,6 @@ jobs:
317323
token: ${{ secrets.CPLN_TOKEN_STAGING }}
318324
org: ${{ vars.CPLN_ORG_STAGING }}
319325

320-
- name: Update Status - Building
321-
uses: actions/github-script@v7
322-
with:
323-
script: |
324-
const buildingMessage = [
325-
'🏗️ Building Docker image for PR #${{ needs.process-deployment.outputs.pr_number }}, commit ${{ needs.process-deployment.outputs.pr_sha }}',
326-
'',
327-
'📝 [View Build Logs](${{ env.WORKFLOW_URL }})',
328-
'',
329-
process.env.CONSOLE_LINK
330-
].join('\n');
331-
332-
await github.rest.issues.updateComment({
333-
owner: context.repo.owner,
334-
repo: context.repo.repo,
335-
comment_id: ${{ needs.process-deployment.outputs.comment_id }},
336-
body: buildingMessage
337-
});
338-
339326
- name: Build Docker Image
340327
id: build
341328
uses: ./.github/actions/build-docker-image

0 commit comments

Comments
 (0)