Skip to content

Commit c118174

Browse files
moodyjoneukreign
authored andcommitted
Try shell: bash to simplify.
1 parent d284acd commit c118174

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ jobs:
3535
- uses: actions/setup-python@v4
3636
with:
3737
python-version: '3.7'
38-
- if: (!startsWith(runner.os, 'windows'))
38+
- name: set pip cache dir
39+
shell: bash
3940
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
40-
- if: startsWith(runner.os, 'windows')
41-
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
4241
- name: extract pip cache
4342
uses: actions/cache@v3
4443
with:
@@ -152,10 +151,9 @@ jobs:
152151
uses: ASzc/change-string-case-action@v5
153152
with:
154153
string: ${{ runner.os }}
155-
- if: (!startsWith(runner.os, 'windows'))
154+
- name: set pip cache dir
155+
shell: bash
156156
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
157-
- if: startsWith(runner.os, 'windows')
158-
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
159157
- name: extract pip cache
160158
uses: actions/cache@v3
161159
with:

0 commit comments

Comments
 (0)