ci: Fix logic to pass less than bool

This commit is contained in:
Edmund Miller 2021-03-28 15:27:20 -05:00
parent 85c1a022b6
commit f0006f3d3d
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -26,7 +26,7 @@ jobs:
id: yq_modules id: yq_modules
run: | run: |
output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -) output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -)
echo "::set-output name=proceed::$(if (test $output -lt 42); then echo 0; fi)" echo "::set-output name=proceed::$(if (test $output -lt 42); then return 0 else return 1 fi)"
@ -114,7 +114,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
name: Test all modules name: Test all modules
needs: changes needs: changes
if: needs.changes.outputs.proceed == '1' if: needs.changes.outputs.proceed != '0'
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix: