1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-28 12:23:37 +01:00

Fixed: implement weekly z_Jackett cache persistence starting each Monday

This commit is contained in:
ServarrAdmin
2025-08-16 10:15:24 -05:00
committed by bakerboy448
parent 9bc1466ba6
commit f90ce65bd7

View File

@@ -45,15 +45,16 @@ jobs:
.venv
key: python-deps-${{ hashFiles('requirements.txt') }}
- name: Get current date
- name: Get current week
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
run: echo "week=$(date +'%Y-W%U')" >> $GITHUB_OUTPUT
- name: Cache Jackett data
uses: actions/cache@v4
- name: Restore Jackett data cache
id: cache-jackett
uses: actions/cache/restore@v4
with:
path: z_Jackett
key: jackett-data-${{ runner.os }}-${{ hashFiles('**/indexer-sync-v2.sh') }}-${{ steps.date.outputs.date }}
key: jackett-data-${{ runner.os }}-${{ hashFiles('**/indexer-sync-v2.sh') }}-${{ steps.date.outputs.week }}
restore-keys: |
jackett-data-${{ runner.os }}-${{ hashFiles('**/indexer-sync-v2.sh') }}-
jackett-data-${{ runner.os }}-
@@ -87,6 +88,13 @@ jobs:
./scripts/indexer-sync-v2.sh -z -a -p -b automated-indexer-sync -o origin
fi
- name: Save Jackett data cache
if: always()
uses: actions/cache/save@v4
with:
path: z_Jackett
key: jackett-data-${{ runner.os }}-${{ hashFiles('**/indexer-sync-v2.sh') }}-${{ steps.date.outputs.week }}
- name: Summary
run: |
echo "✅ Indexer sync workflow completed"