From 87a96419fbf474368c73c1b457e6cfc1d69a7d74 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 15 Mar 2024 10:49:10 +0000 Subject: [PATCH] ci: Fix size limit action base upload --- dev-packages/size-limit-gh-action/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-packages/size-limit-gh-action/index.mjs b/dev-packages/size-limit-gh-action/index.mjs index 43f4f3a96f65..7ff44e0dd8a6 100644 --- a/dev-packages/size-limit-gh-action/index.mjs +++ b/dev-packages/size-limit-gh-action/index.mjs @@ -187,7 +187,7 @@ async function run() { const githubToken = getInput('github_token'); const threshold = getInput('threshold'); - if (!comparisonBranch && !pr) { + if (comparisonBranch && !pr) { throw new Error('No PR found. Only pull_request workflows are supported.'); }