0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-24 16:29:46 +01:00

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
This commit is contained in:
Paolo Ricciuti 2024-11-05 15:03:23 +01:00 committed by GitHub
parent 0ce4b559f2
commit f1f4c29a99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -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:
@ -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({

View File

@ -37,4 +37,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: output.json
path: output.json
path: ./output
- run: ls -R .