Skip to content

Commit fe3f1eb

Browse files
paoloricciutitrueadm
authored andcommitted
fix: pkg.pr.new comment workflow (#14156)
* fix: `pkg.pr.new` comment workflow * chore: remove path from initial workflow and add ls * chore: add path back since it's mandatory
1 parent ec57f44 commit fe3f1eb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ 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 }}
20+
21+
- run: ls -R .
2122
- name: 'Post or update comment'
2223
uses: actions/github-script@v6
2324
with:
@@ -85,8 +86,8 @@ jobs:
8586
}
8687
8788
if (output.event_name === 'pull_request') {
88-
if (context.issue.number) {
89-
await create_or_update_comment(context.issue.number);
89+
if (output.number) {
90+
await create_or_update_comment(output.number);
9091
}
9192
} else if (output.event_name === 'push') {
9293
const pull_requests = await github.rest.pulls.list({

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ jobs:
3737
uses: actions/upload-artifact@v4
3838
with:
3939
name: output.json
40-
path: output.json
40+
path: ./output
41+
42+
- run: ls -R .

0 commit comments

Comments
 (0)