ci: Cause changes to fail if the modules > 256

This commit is contained in:
Edmund Miller 2021-03-25 11:51:07 -05:00
parent c6f676e86f
commit 64f4151632
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -23,13 +23,17 @@ jobs:
cmd: |
output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -)
echo "::set-output name=magic_number::$output"
- name: Fail if number of modules to be tested is greater than 256
uses: cutenode/action-always-fail@v1.0.1
if: steps.yq_modules.outputs.magic_number <= 256
test:
runs-on: ubuntu-20.04
name: ${{ matrix.tags }} ${{ matrix.profile }} ${{ matrix.nxf_version }}
needs: changes
if: needs.changes.outputs.modules != '[]' && needs.changes.outputs.num_modules <= 256
if: needs.changes.outputs.modules != '[]'
strategy:
fail-fast: false
matrix: