Skip to content

Commit

Permalink
fix: pkg.pr.new comment workflow (#14156)
Browse files Browse the repository at this point in the history
* fix: `pkg.pr.new` comment workflow

* chore: remove path from initial workflow and add ls

* chore: add path back since it's mandatory
  • Loading branch information
paoloricciuti authored and trueadm committed Nov 7, 2024
1 parent ec57f44 commit fe3f1eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pkg.pr.new-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
uses: actions/download-artifact@v4
with:
name: output.json
path: output.json
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

- run: ls -R .
- name: 'Post or update comment'
uses: actions/github-script@v6
with:
Expand Down Expand Up @@ -85,8 +86,8 @@ jobs:
}
if (output.event_name === 'pull_request') {
if (context.issue.number) {
await create_or_update_comment(context.issue.number);
if (output.number) {
await create_or_update_comment(output.number);
}
} else if (output.event_name === 'push') {
const pull_requests = await github.rest.pulls.list({
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: output.json
path: output.json
path: ./output

- run: ls -R .

0 comments on commit fe3f1eb

Please sign in to comment.