Skip to content

Commit b57f0f4

Browse files
authored
Update poetry cache when new version is released (#1435)
1 parent 40e427f commit b57f0f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ jobs:
3939
run: |
4040
export PATH="$HOME/.poetry/bin:$PATH"
4141
echo "::set-output name=poetry-venv-dir::$(poetry config virtualenvs.path)"
42+
echo "::set-output name=version::$(poetry version -s)"
4243
echo "::set-output name=date::$(/bin/date -u "+%m%w%Y")"
4344
4445
- name: Setup Poetry cache
4546
uses: actions/cache@v2
4647
with:
4748
path: ${{ steps.cache-vars.outputs.poetry-venv-dir }}
48-
key: ${{ runner.os }}-poetry-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}
49+
key: ${{ runner.os }}-poetry-${{ steps.cache-vars.outputs.version }}-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}
4950

5051
- name: Install and cache ffmpeg (all OS)
5152
uses: FedericoCarboni/setup-ffmpeg@v1

0 commit comments

Comments
 (0)