Skip to content

Commit 8a0817a

Browse files
committed
[wip] bundle stats
1 parent bf5d5e1 commit 8a0817a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/bundle-compare.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
permissions:
88
contents: read
99
actions: read
10+
# To create the comment
11+
pull-requests: write
1012

1113
jobs:
1214
compare:
@@ -57,7 +59,7 @@ jobs:
5759
const runs = await github.rest.actions.listWorkflowRuns({
5860
owner: context.repo.owner,
5961
repo: context.repo.repo,
60-
workflow_id: 199178247 || context.payload.workflow_run.workflow_id,
62+
workflow_id: 64771488 || context.payload.workflow_run.workflow_id,
6163
branch: 'main',
6264
status: 'completed',
6365
per_page: 1,
@@ -69,6 +71,10 @@ jobs:
6971
run_id: runs.data.workflow_runs[0].id,
7072
});
7173
74+
if (!runs) {
75+
throw new Error('No artifact found!');
76+
}
77+
7278
const artifact = artifacts.data.artifacts.find(a => a.name === 'webpack-stats');
7379
7480
if (!artifact) {

0 commit comments

Comments
 (0)