Skip to content

Commit 87e7c2f

Browse files
committed
fix: Ensure we get sizes before resetting repo
1 parent 8de3adb commit 87e7c2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ async function run(octokit, context, token) {
6464
await exec(`${packageManager} run ${buildScript}`);
6565
endGroup();
6666

67+
const newSizes = await plugin.readFromDisk(cwd);
68+
6769
// In case the build step alters a JSON-file, ....
6870
await exec(`git reset --hard`);
6971

70-
const newSizes = await plugin.readFromDisk(cwd);
71-
7272
startGroup(`[base] Checkout target branch`);
7373
try {
7474
if (!baseRef) throw Error('missing context.payload.pull_request.base.ref');

0 commit comments

Comments
 (0)