From c415c2ae0294cfb9a53d8c5bcabe06e3d665ae0c Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Wed, 29 May 2024 14:45:30 -0400 Subject: [PATCH] conditional --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d039e28d1..a1295cbe6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,7 @@ jobs: # workaround https://github.com/actions/checkout/issues/910 - run: git remote set-head origin --auto - run: npm ci - - run: npm run lint:checksums -- origin/${{github.base_ref || 'HEAD^'}} + - if: github.event_name == 'push' + run: npm run lint:checksums -- HEAD^ + - run: npm run lint:checksums -- origin/${{github.base_ref}} + if: github.event_name == 'pull_request'