From fc7540fc9bc5833c66bbf039ba8b56fe90b4ed7c Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Thu, 28 Jul 2022 00:19:37 +0200 Subject: [PATCH] do not run size limit job outside of PRs Currently, this step emits the "Error: No PR found. Only pull_request workflows are supported." message when run on the master branch commits (after the merge), so the change prevents it from being run there. --- .github/workflows/ci-frontend.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index 09c266494..f920fcf75 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -150,6 +150,7 @@ jobs: size-limit: name: Size limit runs-on: ubuntu-latest + if: github.event_name == 'pull_request' env: CI_JOB_NUMBER: 1 steps: