chore(e2e): Avoid error in action if no log files are found (#4152)
This commit is contained in:
1 parent
e49a84ce9c
commit
f36b3d4723
1 file changed
+5
-1
@@ -255,7 +255,11 @@ jobs:
|
||||
run: |
|
||||
pushd enos
|
||||
scenario="${{ matrix.filter }}"
|
||||
for f in *.log; do mv -- "$f" "${f%.log}_${scenario%% *}.log"; done
|
||||
count=$(find ./*.log 2>/dev/null | wc -l | xargs)
|
||||
if [ "$count" != 0 ]
|
||||
then
|
||||
for f in *.log; do mv -- "$f" "${f%.log}_${scenario%% *}.log"; done
|
||||
fi
|
||||
popd
|
||||
- name: Upload e2e tests output
|
||||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
||||
|
||||
Reference in new issue
Block a user