add if failure()

This commit is contained in:
Brian Cristante 2021-06-23 15:46:32 -04:00
parent 13d91b144a
commit a110ccc247

View File

@ -37,7 +37,7 @@ jobs:
# If index.js was different than expected, upload the expected version as an artifact # If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
if: ${{ steps.diff.conclusion == 'failure' }} if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with: with:
name: index.js name: index.js
path: dist/index.js path: dist/index.js