From d8be7f2e5dd094d851c026aca44765ff1fb02936 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Mon, 18 Dec 2023 14:46:49 +0100 Subject: [PATCH] set run-tests only if condition is true --- .github/workflows/pytest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 23d052dc03..15e3f47a89 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -37,7 +37,8 @@ jobs: steps: - name: Check conditions id: conditions - run: echo "run-tests=${{ github.ref == 'refs/heads/master' || (matrix.runner == 'ubuntu-20.04' && matrix.python-version == '3.8') }}" >> $GITHUB_ENV + if: ${{ github.ref == 'refs/heads/master' || (matrix.runner == 'ubuntu-20.04' && matrix.python-version == '3.8') }} + run: echo "run-tests=true" >> $GITHUB_ENV outputs: python-version: ${{ matrix.python-version }}