From 652fd283252ee2f3f99760fb1bb5d565ac9b5512 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 3 Nov 2024 11:49:07 +0100 Subject: [PATCH] Bump app.js size limit, always compare files in the PR with base --- .github/workflows/ci-build-site.yml | 2 +- hugo/.size-limit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build-site.yml b/.github/workflows/ci-build-site.yml index bc926cdf..3e664b12 100644 --- a/.github/workflows/ci-build-site.yml +++ b/.github/workflows/ci-build-site.yml @@ -58,7 +58,7 @@ jobs: id: get-comparison-commit run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then - echo "compare_sha=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})" >> $GITHUB_OUTPUT + echo "compare_sha=$(git rev-parse ${{ github.event.pull_request.base.sha }})" >> $GITHUB_OUTPUT else echo "compare_sha=$(git rev-parse HEAD^1)" >> $GITHUB_OUTPUT fi diff --git a/hugo/.size-limit.js b/hugo/.size-limit.js index d27e86aa..4998708a 100644 --- a/hugo/.size-limit.js +++ b/hugo/.size-limit.js @@ -1,7 +1,7 @@ module.exports = [ { path: 'static/build/app.js', - limit: '17 KB', + limit: '20 KB', }, { path: 'static/build/manifest.js',