未验证 提交 dfd6a163 编写于 作者: X Xavier Fernandez 提交者: GitHub

GitHub Actions: update cache key to include interpreter path (#7835)

And make it more portable by using python
上级 3487df55
......@@ -56,7 +56,7 @@ jobs:
${{ runner.os }}-pip-
${{ runner.os }}-
- name: set PY
run: echo "::set-env name=PY::$(python -VV | sha256sum | cut -d' ' -f1)"
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册