Update python-app.yml

This commit is contained in:
암냥 2025-02-02 14:37:55 +09:00 committed by GitHub
commit adfeea04a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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