Remove pipefail (#15986)

* Remove pipefail

* add fail condition
This commit is contained in:
William Allen 2023-08-09 16:44:29 -05:00 committed by GitHub
parent e130fe7091
commit a92cbe82e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,10 +157,12 @@ jobs:
env:
compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }}
run: |
set -o pipefail
diff-cover --compare-branch=${{ env.compare-branch }} --fail-under=100 --html-report=coverage-reports/diff-cover.html --markdown-report=coverage-reports/diff-cover.md coverage-reports/coverage.xml | tee coverage-reports/diff-cover-stdout
COV_STATUS="${PIPESTATUS[0]}"
echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV"
if [[ $COV_STATUS != '0' ]]; then
exit 1
fi
- name: Remove previous coverage report comment and label from PR
if: always()