Update python-app.yml
This commit is contained in:
parent
a75201526e
commit
adfeea04a4
1 changed files with 9 additions and 2 deletions
11
.github/workflows/python-app.yml
vendored
11
.github/workflows/python-app.yml
vendored
|
|
@ -36,11 +36,18 @@ jobs:
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
|
|
||||||
# Cache cookie.json
|
# Cache cookie.json
|
||||||
- name: Cache cookie.json
|
- name: Cache cookie.json with timestamp check
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json
|
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)
|
- name: Install dependencies (only if requirements.txt changed)
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue