From c118174c1a9216bc4cd9fd511b150e89ff51d665 Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Wed, 1 Feb 2023 13:28:35 -0500 Subject: [PATCH] Try shell: bash to simplify. --- .github/workflows/main.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d3753baa2..6c57a5911 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,10 +35,9 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.7' - - if: (!startsWith(runner.os, 'windows')) + - name: set pip cache dir + shell: bash 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: extract pip cache uses: actions/cache@v3 with: @@ -152,10 +151,9 @@ jobs: uses: ASzc/change-string-case-action@v5 with: string: ${{ runner.os }} - - if: (!startsWith(runner.os, 'windows')) + - name: set pip cache dir + shell: bash 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: extract pip cache uses: actions/cache@v3 with: