File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,14 @@ curl --silent --request POST \
33
33
--form " RUNNER_ARCH=${RUNNER_ARCH:- } " \
34
34
${TAB_API_URL} /api/results/bulk > test-results/tab.json
35
35
cat test-results/tab.json
36
-
37
36
echo
37
+
38
+ if ! grep --quiet " block" test-results/tab.json; then
39
+ echo " ERROR: Invalid response from ${TAB_API_URL} "
40
+ grep --quiet ' failures="0"' test-results/junit.xml
41
+ exit 0
42
+ fi
43
+
38
44
echo " Sharing updated report:"
39
45
curl --silent --request POST \
40
46
--header " Content-Type: application/json" \
@@ -47,8 +53,4 @@ curl --silent --request POST \
47
53
${TAB_API_URL} /api/share
48
54
echo
49
55
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
56
+ grep --quiet ' "block": false' test-results/tab.json
You can’t perform that action at this time.
0 commit comments