Upload screenshots only for failed Selenium tests

Successful tests doesn't produce screenshots.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-12-10 17:40:49 -03:00
parent 158b44e9e2
commit 3343bf54f5
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -153,7 +153,7 @@ jobs:
- name: Upload screenshots
uses: actions/upload-artifact@v2
if: ${{ success() || failure() }}
if: ${{ failure() }}
with:
name: selenium-screenshots
path: ${{ github.workspace }}/build/selenium/**/*