Skip to content

Commit 809c192

Browse files
committed
chore: compare compiled output fixes
1 parent 3ec3b46 commit 809c192

File tree

10 files changed

+549
-572
lines changed

10 files changed

+549
-572
lines changed

.github/actions/file-diff/index.js

+6-12
Original file line numberDiff line numberDiff line change
@@ -331,22 +331,16 @@ async function run() {
331331
0
332332
);
333333
core.setOutput("total-size", headMainSize);
334-
335-
if (hasBase) {
336-
const baseMainSize = [...baseOutput.entries()].reduce(
337-
(acc, [, size]) => acc + size,
338-
0
339-
);
340-
341-
core.setOutput(
342-
"has-changed",
343-
hasBase && headMainSize !== baseMainSize ? "true" : "false"
344-
);
345-
}
346334
}
347335
else {
348336
core.setOutput("total-size", 0);
349337
}
338+
339+
core.setOutput(
340+
"has-changed",
341+
sections.length === 0 ? "true" : "false"
342+
);
343+
350344
} catch (error) {
351345
core.error(error.stack);
352346
core.setFailed(error.message);

0 commit comments

Comments
 (0)