File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,8 @@ jobs:
107107 - name : Get badge details
108108 run : |
109109 find . -name test-results.trx -exec cat '{}' >> all-results.xml \;
110- TEST_COUNT=`grep -Pio '(?<=total=")\d+' all-results.xml | awk '{ SUM += $1} END { print SUM }'`
111- echo "FAIL_COUNT=`grep -Pio '(?<=failures=")\d+' all-results.xml | awk '{ SUM += $1} END { print SUM }'`" >> $GITHUB_ENV
112- echo "PASS_COUNT=$((TEST_COUNT - FAIL_COUNT))" >> $GITHUB_ENV
110+ echo "FAIL_COUNT=`grep -Pio '(?<=failed=")\d+' all-results.xml | awk '{ SUM += $1} END { print SUM }'`" >> $GITHUB_ENV
111+ echo "PASS_COUNT=`grep -Pio '(?<=passed=")\d+' all-results.xml | awk '{ SUM += $1} END { print SUM }'`" >> $GITHUB_ENV
113112 if [[ $FAIL_COUNT -eq 0 ]]
114113 then
115114 echo "BUILD_STATUS=success" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments