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 aac378d commit a9cb55aCopy full SHA for a9cb55a
dev-packages/size-limit-gh-action/index.mjs
@@ -81,7 +81,10 @@ class SizeLimit {
81
}
82
83
parseResults(output) {
84
- const results = JSON.parse(output);
+ // Ignore any output before `[`, as the command itself may be logged...
85
+ const stripped = output.slice(output.indexOf('[')).trim();
86
+
87
+ const results = JSON.parse(stripped);
88
89
return results.reduce((current, result) => {
90
let time = {};
@@ -251,7 +254,6 @@ async function run() {
251
254
current = limit.parseResults(output);
252
255
} catch (error) {
253
256
core.error('Error parsing size-limit output. The output should be a json.');
- core.error(output);
257
throw error;
258
259
0 commit comments