Skip to content

Commit

Permalink
avoid step failing when no images found
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Dec 30, 2023
1 parent 505c2fa commit 716fb96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ jobs:
if: always()
run: |
cd $GITHUB_WORKSPACE
cp -v /tmp/*.png output/screenshots
images=$(ls -l /tmp/*.png 2>/dev/null | wc -l)
[[ $images -gt 0 ]] && cp -v /tmp/*.png output/screenshots
- name: Upload the screenshots
if: always()
Expand Down

0 comments on commit 716fb96

Please sign in to comment.