Skip to content
Permalink
Browse files

also report when build failed

  • Loading branch information
3nids authored and nyalldawson committed Feb 8, 2021
1 parent 66b3952 commit 2ccda79f970a90b1eb84660a2d531866522dc26d
Showing with 5 additions and 3 deletions.
  1. +5 −3 .github/workflows/run-tests.yml
@@ -194,11 +194,13 @@ jobs:
run: |
echo "::set-output name=COMMENT_ID::"$([[ "${COMMENT_FOUND}" -eq "0" ]] && echo ${COMMENT_CREATED} || echo ${COMMENT_FOUND})
if [[ ${JOB_RESULT} -eq "success" ]]; then
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA} unit-tests pass"
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: unit-tests pass"
elif [[ ${TESTS_PASS} -eq "true" ]]; then
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA} unit-tests pass but job failed!"
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: unit-tests pass but job failed!"
elif [[ -z ${CDASH_URL} ]]; then
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: build failed"
else
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA} tests are failing: ${CDASH_URL}"
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: tests are failing: ${CDASH_URL}"
fi
- name: Update comment

0 comments on commit 2ccda79

Please sign in to comment.