Commit 5e6be91 1 parent 0388c77 commit 5e6be91 Copy full SHA for 5e6be91
File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,22 @@ jobs:
32
32
uses : actions/setup-python@v2
33
33
with :
34
34
python-version : ${{ matrix.python-version }}
35
- - name : Set PY
35
+ - name : Set Variables
36
+ id : set_variables
36
37
run : |
37
- echo "PY= $(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
38
- echo "PIP_CACHE= $(pip cache dir)" >> $GITHUB_ENV
38
+ echo "::set-output name=PY:: $(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
39
+ echo "::set-output name=PIP_CACHE:: $(pip cache dir)"
39
40
- name : Cache PIP
40
41
uses : actions/cache@v1
41
42
with :
42
- path : ${{ env .PIP_CACHE }}
43
- key : ${{ runner.os }}-pip-${{ env .PY }}
43
+ path : ${{ steps.set_variables.outputs .PIP_CACHE }}
44
+ key : ${{ runner.os }}-pip-${{ steps.set_variables.outputs .PY }}
44
45
- name : Cache PEP 582 packages
45
46
uses : actions/cache@v1
46
47
with :
47
48
path : __pypackages__
48
49
# Look to see if there is a cache hit for the corresponding requirements file
49
- key : ${{ runner.os }}-packages-${{ env.PY }}-${{ hashFiles('pdm.lock') }}
50
+ key : ${{ runner.os }}-packages-${{ steps.set_variables.outputs.PY }}
50
51
- name : Install Current PDM
51
52
run : |
52
53
pip install -U pip
You can’t perform that action at this time.
0 commit comments