We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ad43df + a16c573 commit f3af31cCopy full SHA for f3af31c
.github/workflows/check-binary-size.yml
@@ -5,7 +5,7 @@
5
name: Check binary size
6
7
on:
8
- pull_request:
+ pull_request_target:
9
branches:
10
- master
11
@@ -69,13 +69,14 @@ jobs:
69
const diff_str = `${plus}${diff}B`;
70
71
if (diff !== 0) {
72
+ const percent = (((updated / reference) - 1) * 100).toFixed(2);
73
// The body is created here and wrapped so "weirdly" to avoid whitespace at the start of the lines,
74
// which is interpreted as a code block by Markdown.
75
const body = `Below is the size of a hello-world Rust program linked with libstd with backtrace.
76
77
Original binary size: **${reference}B**
78
Updated binary size: **${updated}B**
- Difference: **${diff_str}**`;
79
+ Difference: **${diff_str}** (${percent}%)`;
80
81
github.rest.issues.createComment({
82
issue_number: context.issue.number,
0 commit comments