Skip to content

Commit 80a2b0b

Browse files
committed
Apply some adjustments.
1 parent 3ab242a commit 80a2b0b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/pull-request-comments.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ jobs:
230230

231231
- name: Leave a comment with any differences noticed
232232
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
233-
env:
234-
RUN_ID:
235-
${{ github.event.workflow_run.id }}
236233
with:
237234
script: |
238235
const fs = require( 'fs' );
@@ -315,7 +312,7 @@ jobs:
315312
</details>`;
316313
}
317314
318-
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 }).`;
315+
commentInfo.body += `[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 }).`;
319316
}
320317
321318
if ( commentInfo.comment_id ) {

0 commit comments

Comments
 (0)