mirror of https://github.com/pypa/pip
Merge pull request #9149 from pradyunsg/ci/fix-github-action
Use the new environment files in GitHub Actions
This commit is contained in:
commit
0006f12926
|
@ -38,7 +38,7 @@ jobs:
|
|||
${{ runner.os }}-
|
||||
|
||||
- name: Set PY (for pre-commit cache)
|
||||
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
|
||||
run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
|
||||
- name: pre-commit cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
${{ runner.os }}-pip-
|
||||
${{ runner.os }}-
|
||||
- name: Set PY (for pre-commit cache)
|
||||
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
|
||||
run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
|
||||
- name: pre-commit cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue