From 463979df239a2251e46a3a1b2f1122672b9dd4f1 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sun, 28 Mar 2021 15:17:55 -0500 Subject: [PATCH] ci: Install yq manually instead of using docker action --- .github/workflows/pytest-workflow.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index 1279ae38..2e50a887 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -16,14 +16,17 @@ 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: | - output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -) - echo "::set-output name=proceed::$(if (test $output -lt 42); then echo 0; fi)" + run: | + output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -) + echo "::set-output name=proceed::$(if (test $output -lt 42); then echo 0; fi)"