Skip to content

Commit

Permalink
fix bash conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Feb 3, 2021
1 parent 12437dc commit f2a860a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Expand Up @@ -183,7 +183,7 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
** Tests report **
**Tests report**
- name: Process
id: process-vars
Expand All @@ -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"
Expand Down

0 comments on commit f2a860a

Please sign in to comment.