From 7bd025ae54e6287d40c95ad2965526f07224989d Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Tue, 13 Dec 2022 13:45:38 -0600 Subject: [PATCH] Upgrade change-string-case. Use startsWith() to test runner.os. Bump change-string-case-action version again. --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 866d11a1f..f27dae660 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,11 +36,11 @@ jobs: with: python-version: '3.7' - name: set pip cache dir (linux/mac) - if: runner.os != 'Windows' + if: (!startsWith(runner.os, 'windows')) id: pip-cache-nix run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV - name: set pip cache dir (windows) - if: runner.os == 'Windows' + if: startsWith(runner.os, 'windows') id: pip-cache-win run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV - name: debug pip cache @@ -52,7 +52,7 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} restore-keys: ${{ runner.os }}-pip- - id: os-name - uses: ASzc/change-string-case-action@v1 + uses: ASzc/change-string-case-action@v5 with: string: ${{ runner.os }} - run: python -m pip install --user --upgrade pip wheel @@ -155,15 +155,15 @@ jobs: with: python-version: '3.7' - id: os-name - uses: ASzc/change-string-case-action@v1 + uses: ASzc/change-string-case-action@v5 with: string: ${{ runner.os }} - name: set pip cache dir (linux/mac) - if: runner.os != 'Windows' + if: (!startsWith(runner.os, 'windows')) id: pip-cache-nix run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV - name: set pip cache dir (windows) - if: runner.os == 'Windows' + if: startsWith(runner.os, 'windows') id: pip-cache-win run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV - name: debug pip cache