Skip to content

Commit 7e2c5f1

Browse files
authored
ci: Fix size limit action base upload (#11124)
Noticed this is failing e.g. https://github.com/getsentry/sentry-javascript/actions/runs/8294578489/job/22700116991, it was an incorrect check: if there is no comparison branch, we don't need a PR.
1 parent 1acf54f commit 7e2c5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-packages/size-limit-gh-action/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async function run() {
187187
const githubToken = getInput('github_token');
188188
const threshold = getInput('threshold');
189189

190-
if (!comparisonBranch && !pr) {
190+
if (comparisonBranch && !pr) {
191191
throw new Error('No PR found. Only pull_request workflows are supported.');
192192
}
193193

0 commit comments

Comments
 (0)