From a110ccc24767ca1a3ae8a5bf2c8c4ceb16f10121 Mon Sep 17 00:00:00 2001 From: Brian Cristante <33549821+brcrista@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:46:32 -0400 Subject: [PATCH] add if failure() --- .github/workflows/check-dist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 1e54de9..b73a4e4 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -37,7 +37,7 @@ jobs: # If index.js was different than expected, upload the expected version as an artifact - uses: actions/upload-artifact@v2 - if: ${{ steps.diff.conclusion == 'failure' }} + if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: index.js path: dist/index.js