From adfeea04a424673971c30d7c2f6dd806212eb681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=94=EB=83=A5?= Date: Sun, 2 Feb 2025 14:37:55 +0900 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 013bfcb..d61e82e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -36,11 +36,18 @@ jobs: ${{ runner.os }}-pip- # Cache cookie.json - - name: Cache cookie.json + - name: Cache cookie.json with timestamp check uses: actions/cache@v3 with: path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json - key: ${{ runner.os }}-cookie-${{ hashFiles('/home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json') }} + key: ${{ runner.os }}-cookie-${{ steps.timestamp.outputs.timestamp }} + restore-keys: | + ${{ runner.os }}-cookie- + + - name: Set timestamp for cookie.json + id: timestamp + run: | + echo "::set-output name=timestamp::$(date -r /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json +'%s')" - name: Install dependencies (only if requirements.txt changed) run: |