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: |