Upgrade change-string-case. Use startsWith() to test runner.os.

Bump change-string-case-action version again.
This commit is contained in:
Jonathan Moody 2022-12-13 13:45:38 -06:00 committed by Lex Berezhny
parent 8f28ce65b0
commit 7bd025ae54

View file

@ -36,11 +36,11 @@ jobs:
with: with:
python-version: '3.7' python-version: '3.7'
- name: set pip cache dir (linux/mac) - name: set pip cache dir (linux/mac)
if: runner.os != 'Windows' if: (!startsWith(runner.os, 'windows'))
id: pip-cache-nix id: pip-cache-nix
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
- name: set pip cache dir (windows) - name: set pip cache dir (windows)
if: runner.os == 'Windows' if: startsWith(runner.os, 'windows')
id: pip-cache-win id: pip-cache-win
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
- name: debug pip cache - name: debug pip cache
@ -52,7 +52,7 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: ${{ runner.os }}-pip- restore-keys: ${{ runner.os }}-pip-
- id: os-name - id: os-name
uses: ASzc/change-string-case-action@v1 uses: ASzc/change-string-case-action@v5
with: with:
string: ${{ runner.os }} string: ${{ runner.os }}
- run: python -m pip install --user --upgrade pip wheel - run: python -m pip install --user --upgrade pip wheel
@ -155,15 +155,15 @@ jobs:
with: with:
python-version: '3.7' python-version: '3.7'
- id: os-name - id: os-name
uses: ASzc/change-string-case-action@v1 uses: ASzc/change-string-case-action@v5
with: with:
string: ${{ runner.os }} string: ${{ runner.os }}
- name: set pip cache dir (linux/mac) - name: set pip cache dir (linux/mac)
if: runner.os != 'Windows' if: (!startsWith(runner.os, 'windows'))
id: pip-cache-nix id: pip-cache-nix
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
- name: set pip cache dir (windows) - name: set pip cache dir (windows)
if: runner.os == 'Windows' if: startsWith(runner.os, 'windows')
id: pip-cache-win id: pip-cache-win
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
- name: debug pip cache - name: debug pip cache