Skip to content

Commit

Permalink
Try shell: bash to simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyjon authored and eukreign committed Feb 2, 2023
1 parent d284acd commit c118174
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c118174

Please sign in to comment.