mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Use full Python version for GitHub Actions cache key (#1373)
This commit is contained in:
parent
55dd9484c9
commit
5e45f305ac
1 changed files with 5 additions and 2 deletions
7
.github/workflows/testing.yaml
vendored
7
.github/workflows/testing.yaml
vendored
|
@ -45,11 +45,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: poetry cache # Change CACHE_STRING secret to bust the cache. Useful with minor Python version changes.
|
- name: Capture full Python version in env
|
||||||
|
run: echo "PYTHON_FULL_VERSION=$(python --version)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: poetry cache # Change CACHE_STRING secret to bust the cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: .venv
|
path: .venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}-${{ secrets.CACHE_STRING }}
|
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ secrets.CACHE_STRING }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue