Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Update poetry cache when new version is released (#1435)

Ricky Chonb57f0f401905
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d0a833e65..da7d1e633 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,13 +39,14 @@ jobs:
run: |
export PATH="$HOME/.poetry/bin:$PATH"
echo "::set-output name=poetry-venv-dir::$(poetry config virtualenvs.path)"
+ echo "::set-output name=version::$(poetry version -s)"
echo "::set-output name=date::$(/bin/date -u "+%m%w%Y")"
- name: Setup Poetry cache
uses: actions/cache@v2
with:
path: ${{ steps.cache-vars.outputs.poetry-venv-dir }}
- key: ${{ runner.os }}-poetry-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}
+ key: ${{ runner.os }}-poetry-${{ steps.cache-vars.outputs.version }}-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}
- name: Install and cache ffmpeg (all OS)
uses: FedericoCarboni/setup-ffmpeg@v1