From 8b4e0de5013847473ce66c323629a8c2a42d6ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=94=EB=83=A5?= Date: Sun, 2 Feb 2025 14:20:57 +0900 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index aa77283..5b1b96c 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -40,7 +40,7 @@ jobs: uses: actions/cache@v3 with: path: /home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth - key: ${{ runner.os }}-cookie-${{ hashFiles('/home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth') }} + key: ${{ runner.os }}-cookie-${{ hashFiles('/home/runner/work/today.isangjeong/today.isangjeong/app/temp/auth/cookies.json') }} restore-keys: | ${{ runner.os }}-cookie- @@ -48,7 +48,11 @@ jobs: run: | pwd python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f requirements.txt ] && ! pip freeze | diff - requirements.txt > /dev/null; then + pip install -r requirements.txt + else + echo "No changes in requirements.txt, skipping installation" + fi - name: Set Permission run: |