We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf5d5e1 commit 8a0817aCopy full SHA for 8a0817a
.github/workflows/bundle-compare.yml
@@ -7,6 +7,8 @@ on:
7
permissions:
8
contents: read
9
actions: read
10
+ # To create the comment
11
+ pull-requests: write
12
13
jobs:
14
compare:
@@ -57,7 +59,7 @@ jobs:
57
59
const runs = await github.rest.actions.listWorkflowRuns({
58
60
owner: context.repo.owner,
61
repo: context.repo.repo,
- workflow_id: 199178247 || context.payload.workflow_run.workflow_id,
62
+ workflow_id: 64771488 || context.payload.workflow_run.workflow_id,
63
branch: 'main',
64
status: 'completed',
65
per_page: 1,
@@ -69,6 +71,10 @@ jobs:
69
71
run_id: runs.data.workflow_runs[0].id,
70
72
});
73
74
+ if (!runs) {
75
+ throw new Error('No artifact found!');
76
+ }
77
+
78
const artifact = artifacts.data.artifacts.find(a => a.name === 'webpack-stats');
79
80
if (!artifact) {
0 commit comments