File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ jobs:
358358 needs : build
359359 if : needs.build.outputs.do_deploy != 'false'
360360 runs-on : ubuntu-latest
361+ env :
362+ COMMENT_ID : ${{ needs.process-deployment.outputs.comment_id }}
361363 steps :
362364 - name : Checkout code
363365 uses : actions/checkout@v4
@@ -368,6 +370,12 @@ jobs:
368370 token : ${{ secrets.CPLN_TOKEN_STAGING }}
369371 org : ${{ vars.CPLN_ORG_STAGING }}
370372
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+
371379 - name : Update Status - Deploying
372380 uses : actions/github-script@v7
373381 with :
@@ -385,7 +393,7 @@ jobs:
385393 await github.rest.issues.updateComment({
386394 owner: context.repo.owner,
387395 repo: context.repo.repo,
388- comment_id: '${{ needs. process-deployment.outputs.comment_id } }',
396+ comment_id: '${process.env.COMMENT_ID }',
389397 body: deployingMessage
390398 });
391399
You can’t perform that action at this time.
0 commit comments