From 7a70dd6e2c7494883a8f3e76562cd2bd77c9512d Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Wed, 31 Mar 2021 21:01:42 -0400 Subject: [PATCH] avoid dashes that aren't flags --- .github/workflows/example-10.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/example-10.yml b/.github/workflows/example-10.yml index 24dc47f3..95ad5cc5 100644 --- a/.github/workflows/example-10.yml +++ b/.github/workflows/example-10.yml @@ -100,6 +100,6 @@ jobs: if: contains(matrix.environment-file, '.yml') && matrix.python-version run: | set -eux - if [ "$(diff '${{ steps.setup-miniconda.outputs.environment-file }}' '${{ matrix.environment-file }}' | grep -c '- python=${{ matrix.python-version }}')" -eq 0 ]; then exit 1; fi + if [ "$(diff '${{ steps.setup-miniconda.outputs.environment-file }}' '${{ matrix.environment-file }}' | grep -c 'python=${{ matrix.python-version }}')" -ge 1 ]; then echo ok; else; exit 1; fi python --version | grep "Python ${{ matrix.python-version }}" awk '/- conda-forge/,/- defaults/' '${{ steps.setup-miniconda.outputs.environment-file }}'