@@ -35,14 +35,11 @@ jobs:
35
35
- uses : actions/setup-python@v4
36
36
with :
37
37
python-version : ' 3.7'
38
- - name : set pip cache dir (linux/mac)
39
- if : (!startsWith(runner.os, 'windows'))
40
- id : pip-cache-nix
41
- run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
42
- - name : set pip cache dir (windows)
43
- if : startsWith(runner.os, 'windows')
44
- id : pip-cache-win
45
- run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
38
+ - name : set pip cache dir
39
+ - if : (!startsWith(runner.os, 'windows'))
40
+ run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
41
+ - if : startsWith(runner.os, 'windows')
42
+ run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
46
43
- name : debug pip cache
47
44
run : echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
48
45
- name : extract pip cache
@@ -158,14 +155,11 @@ jobs:
158
155
uses : ASzc/change-string-case-action@v5
159
156
with :
160
157
string : ${{ runner.os }}
161
- - name : set pip cache dir (linux/mac)
162
- if : (!startsWith(runner.os, 'windows'))
163
- id : pip-cache-nix
164
- run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
165
- - name : set pip cache dir (windows)
166
- if : startsWith(runner.os, 'windows')
167
- id : pip-cache-win
168
- run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
158
+ - name : set pip cache dir
159
+ - if : (!startsWith(runner.os, 'windows'))
160
+ run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
161
+ - if : startsWith(runner.os, 'windows')
162
+ run : echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
169
163
- name : debug pip cache
170
164
run : echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
171
165
- name : extract pip cache
0 commit comments