File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ jobs:
358
358
needs : build
359
359
if : needs.build.outputs.do_deploy != 'false'
360
360
runs-on : ubuntu-latest
361
+ env :
362
+ COMMENT_ID : ${{ needs.process-deployment.outputs.comment_id }}
361
363
steps :
362
364
- name : Checkout code
363
365
uses : actions/checkout@v4
@@ -368,6 +370,12 @@ jobs:
368
370
token : ${{ secrets.CPLN_TOKEN_STAGING }}
369
371
org : ${{ vars.CPLN_ORG_STAGING }}
370
372
373
+ - name : Print Comment id as job output
374
+ run : echo '${{ needs.process-deployment.outputs.comment_id }}'
375
+
376
+ - name : Print Comment id as env var
377
+ run : echo '${process.env.COMMENT_ID}'
378
+
371
379
- name : Update Status - Deploying
372
380
uses : actions/github-script@v7
373
381
with :
@@ -385,7 +393,7 @@ jobs:
385
393
await github.rest.issues.updateComment({
386
394
owner: context.repo.owner,
387
395
repo: context.repo.repo,
388
- comment_id: '${{ needs. process-deployment.outputs.comment_id } }',
396
+ comment_id: '${process.env.COMMENT_ID }',
389
397
body: deployingMessage
390
398
});
391
399
You can’t perform that action at this time.
0 commit comments