ci: Install yq manually instead of using docker action

This commit is contained in:
Edmund Miller 2021-03-28 15:17:55 -05:00
parent f2825f7f02
commit 463979df23
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -16,12 +16,15 @@ jobs:
with:
filters: 'tests/config/pytest_software.yml'
- name: Install yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
# 256 max jobs / 2 nxf versions / 3 profiles
- uses: mikefarah/yq@v4.6.3
name: Fail if number of modules to be tested is greater than 42
- name: Fail if number of modules to be tested is greater than 42
id: yq_modules
with:
cmd: |
run: |
output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -)
echo "::set-output name=proceed::$(if (test $output -lt 42); then echo 0; fi)"