From 235c98372d1c154e6717804f279bc998cf1ee48a Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Wed, 1 Feb 2023 12:42:41 -0500 Subject: [PATCH] Fix syntax. --- .github/workflows/main.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 12d30f94e..b2516b133 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,11 +35,10 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.7' - - name: set pip cache dir - - if: (!startsWith(runner.os, 'windows')) - run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV - - if: startsWith(runner.os, 'windows') - run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV + - if: (!startsWith(runner.os, 'windows')) + run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV + - if: startsWith(runner.os, 'windows') + run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV - name: debug pip cache run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}" - name: extract pip cache @@ -155,11 +154,10 @@ jobs: uses: ASzc/change-string-case-action@v5 with: string: ${{ runner.os }} - - name: set pip cache dir - - if: (!startsWith(runner.os, 'windows')) - run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV - - if: startsWith(runner.os, 'windows') - run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV + - if: (!startsWith(runner.os, 'windows')) + run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV + - if: startsWith(runner.os, 'windows') + run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV - name: debug pip cache run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}" - name: extract pip cache