From 45e1d631a6624bf5e41598093299986f93bf5743 Mon Sep 17 00:00:00 2001 From: A1lo Date: Fri, 9 Dec 2022 18:20:22 +0800 Subject: [PATCH] ci(pr-deployer): cache with specific python version (#7779) --- .github/workflows/pr-deployer.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-deployer.yml b/.github/workflows/pr-deployer.yml index 5a691ab9e102..00cd413a4bc3 100644 --- a/.github/workflows/pr-deployer.yml +++ b/.github/workflows/pr-deployer.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v3 - name: Install Python + id: setup-python uses: actions/setup-python@v4 with: python-version: "3.8" @@ -23,13 +24,13 @@ jobs: uses: actions/cache@v3 with: path: deployer/.venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }} + key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }} - name: Load cached .local uses: actions/cache@v3 with: path: ~/.local - key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }} + key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }} - name: Install Python poetry uses: snok/install-poetry@v1