File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9393 steps :
9494 - name : Download artifact
9595 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
96+ env :
97+ RUN_ID : ${{ github.event.workflow_run.id }}
9698 with :
9799 script : |
98100 const artifacts = await github.rest.actions.listWorkflowRunArtifacts( {
@@ -119,8 +121,6 @@ jobs:
119121
120122 const fs = require( 'fs' );
121123 fs.writeFileSync( '${{github.workspace}}/pr-number.zip', Buffer.from( download.data ) )
122- env :
123- RUN_ID : ${{ github.event.workflow_run.id }}
124124
125125 - name : Unzip the artifact containing the PR number
126126 run : unzip pr-number.zip
@@ -231,9 +231,6 @@ jobs:
231231
232232 - name : Leave a comment with any differences noticed
233233 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
234- env :
235- RUN_ID :
236- ${{ github.event.workflow_run.id }}
237234 with :
238235 script : |
239236 const fs = require( 'fs' );
@@ -316,7 +313,7 @@ jobs:
316313 </details>`;
317314 }
318315
319- commentInfo.body += `[Download the complete .diff file from the workflow run](https://github.com/${ context.repo.owner }/${ context.repo.repo }/actions/runs/${ process.env.RUN_ID }).`;
316+ commentInfo.body += `\n\n [Download the complete .diff file from the workflow run](https://github.com/${ context.repo.owner }/${ context.repo.repo }/actions/runs/${ context.payload.workflow_run.id }).`;
320317 }
321318
322319 if ( commentInfo.comment_id ) {
You can’t perform that action at this time.
0 commit comments