Skip to content

Commit b8c02ac

Browse files
authored
Fall back to raw test results if the TAB API is down (#7957)
1 parent ede6465 commit b8c02ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/ci-cd-scripts/upload-results.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,8 @@ curl --silent --request POST \
4747
${TAB_API_URL}/api/share
4848
echo
4949

50-
grep --quiet '"block": false' test-results/tab.json
50+
if [ -f "test-results/tab.json" ]; then
51+
grep --quiet '"block": false' test-results/tab.json
52+
else
53+
grep --quiet 'failures="0"' test-results/junit.xml
54+
fi

0 commit comments

Comments
 (0)