Fix syntax.

This commit is contained in:
Jonathan Moody 2023-02-01 12:42:41 -05:00 committed by Lex Berezhny
parent d2f5073ef4
commit 235c98372d

View file

@ -35,11 +35,10 @@ jobs:
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
with: with:
python-version: '3.7' python-version: '3.7'
- name: set pip cache dir - if: (!startsWith(runner.os, 'windows'))
- if: (!startsWith(runner.os, 'windows')) run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV - if: startsWith(runner.os, 'windows')
- if: startsWith(runner.os, 'windows') 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
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}" run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
- name: extract pip cache - name: extract pip cache
@ -155,11 +154,10 @@ jobs:
uses: ASzc/change-string-case-action@v5 uses: ASzc/change-string-case-action@v5
with: with:
string: ${{ runner.os }} string: ${{ runner.os }}
- name: set pip cache dir - if: (!startsWith(runner.os, 'windows'))
- if: (!startsWith(runner.os, 'windows')) run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV - if: startsWith(runner.os, 'windows')
- if: startsWith(runner.os, 'windows') 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
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}" run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
- name: extract pip cache - name: extract pip cache