@@ -244,7 +244,6 @@ jobs:
244
244
issue_number: process.env.PR_NUMBER,
245
245
body: '🚀 Starting deployment process...\n\n' + process.env.CONSOLE_LINK
246
246
});
247
- // console.log(result);
248
247
core.setOutput('comment-id', result.data.id);
249
248
250
249
- name : Set Deployment URLs
@@ -356,11 +355,9 @@ jobs:
356
355
PR_NUMBER : ${{ needs.process-deployment.outputs.pr_number }}
357
356
358
357
deploy :
359
- needs : build
358
+ needs : [ build, process-deployment]
360
359
if : needs.build.outputs.do_deploy != 'false'
361
360
runs-on : ubuntu-latest
362
- env :
363
- COMMENT_ID : ${{ needs.process-deployment.outputs.comment_id }}
364
361
steps :
365
362
- name : Checkout code
366
363
uses : actions/checkout@v4
@@ -371,12 +368,6 @@ jobs:
371
368
token : ${{ secrets.CPLN_TOKEN_STAGING }}
372
369
org : ${{ vars.CPLN_ORG_STAGING }}
373
370
374
- - name : Print Comment id as job output
375
- run : echo '${{ needs.process-deployment.outputs.comment_id }}'
376
-
377
- - name : Print Comment id as env var
378
- run : echo $COMMENT_ID
379
-
380
371
- name : Update Status - Deploying
381
372
uses : actions/github-script@v7
382
373
with :
@@ -394,7 +385,7 @@ jobs:
394
385
await github.rest.issues.updateComment({
395
386
owner: context.repo.owner,
396
387
repo: context.repo.repo,
397
- comment_id: '${ process.env.COMMENT_ID}' ,
388
+ comment_id: ${{ needs. process-deployment.outputs.comment_id }} ,
398
389
body: deployingMessage
399
390
});
400
391
0 commit comments