Skip to content

Commit

Permalink
ci: GHA: fix PY_CACHE_KEY (use $GIHUB_ENV)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 18, 2020
1 parent c5f7301 commit ffb11a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:

# Caching.
- name: set PY_CACHE_KEY
run: echo "::set-env name=PY_CACHE_KEY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
run: echo "PY_CACHE_KEY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
- name: Cache .tox
if: (matrix.tox_env != 'docs')
uses: actions/cache@v1
Expand Down

0 comments on commit ffb11a5

Please sign in to comment.