Skip to content

Commit 207edcb

Browse files
committed
fix: pkg.pr.new comment workflow
1 parent 0ce4b55 commit 207edcb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/pkg.pr.new-comment.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
uses: actions/download-artifact@v4
1616
with:
1717
name: output.json
18-
path: output.json
1918
github-token: ${{ secrets.GITHUB_TOKEN }}
2019
run-id: ${{ github.event.workflow_run.id }}
2120
- name: 'Post or update comment'
@@ -85,8 +84,8 @@ jobs:
8584
}
8685
8786
if (output.event_name === 'pull_request') {
88-
if (context.issue.number) {
89-
await create_or_update_comment(context.issue.number);
87+
if (output.number) {
88+
await create_or_update_comment(output.number);
9089
}
9190
} else if (output.event_name === 'push') {
9291
const pull_requests = await github.rest.pulls.list({

0 commit comments

Comments
 (0)