Skip to content
Permalink
Browse files

fix bash conditions

  • Loading branch information
3nids authored and nyalldawson committed Feb 5, 2021
1 parent e19b085 commit 418f562b7a30121d0dc2794527087334e2fc8eee
Showing with 4 additions and 4 deletions.
  1. +4 −4 .github/workflows/run-tests.yml
@@ -183,7 +183,7 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
** Tests report **
**Tests report**
- name: Process
id: process-vars
@@ -197,11 +197,11 @@ jobs:
RUNNERS_OUTCOME: ${{ needs.build.outputs.runners_outcome }}
run: |
echo "::set-output name=COMMENT_ID::"$([[ "${COMMENT_FOUND}" -eq "0" ]] && echo ${COMMENT_CREATED} || echo ${COMMENT_FOUND})
if [[ ${COMPILE_OUTCOME} -ne "success" ]]; then
if [[ ${COMPILE_OUTCOME} != "success" ]]; then
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: compilation failed"
elif [[ ${TESTS_PASS} -ne "true" ]]; then
elif [[ ${TESTS_PASS} != "true" ]]; then
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: some unit-tests are failing ${CDASH_URL}"
elif [[ ${RUNNERS_OUTCOME} -ne "success" ]]; then
elif [[ ${RUNNERS_OUTCOME} != "success" ]]; then
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: QGIS runners test failed"
else
echo "::set-output name=COMMENT_BODY::${COMMIT_SHA}: unit-tests succeeded"

0 comments on commit 418f562

Please sign in to comment.