Skip to content

Commit

Permalink
also report when build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Feb 8, 2021
1 parent 66b3952 commit 2ccda79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/run-tests.yml
Expand Up @@ -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
Expand Down

0 comments on commit 2ccda79

Please sign in to comment.