diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index 8790f546d..11deb725d 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -30,16 +30,18 @@ jobs: # Always succeeding sanity test until all errors are fixed - name: Run sanity test run: | - { - echo 'sanity<> ${GITHUB_OUTPUT} + --failure-ok \ + 2>&1 \ + ) + echo "${sanity}" + echo errors=$(grep -c "ERROR: [rp]" <<< "${sanity}") >> $GITHUB_OUTPUT working-directory: ${{ matrix.ansible }}/ansible_collections/redhatci/ocp id: sanity_test @@ -47,6 +49,5 @@ jobs: run: | echo "## Error summary" >> ${GITHUB_STEP_SUMMARY} echo "" >> ${GITHUB_STEP_SUMMARY} - echo "Total Errors: $(grep -c "ERROR: [rp]" <<< "${{ steps.sanity_test.outputs.sanity }}") >> ${GITHUB_STEP_SUMMARY} - grep "ERROR: F" <<< "${{ steps.sanity_test.outputs.sanity }}" >> ${GITHUB_STEP_SUMMARY} + echo "Total Errors: ${{ steps.sanity_test.outputs.errors }}" >> ${GITHUB_STEP_SUMMARY} echo "" >> ${GITHUB_STEP_SUMMARY}