From 21bbd1153ce86cee47452d1da6e7f666fd2bb008 Mon Sep 17 00:00:00 2001 From: Tim Schneeberger Date: Sat, 23 Dec 2023 15:50:28 +0000 Subject: [PATCH] Add caching to the crawler to prevent disappearing entries in TODO.md --- .github/workflows/run-crawler.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/run-crawler.yml b/.github/workflows/run-crawler.yml index 8b8d8bf1..0b2fb6bd 100644 --- a/.github/workflows/run-crawler.yml +++ b/.github/workflows/run-crawler.yml @@ -33,6 +33,13 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt + + - name: Restore cache + id: cache-primes-restore + uses: actions/cache/restore@v3 + with: + path: cache/ + key: crawler-cache - name: Run crawler env: @@ -42,6 +49,13 @@ jobs: python main.py ./list cat ./list/pages/TODO.md >> $GITHUB_STEP_SUMMARY + - name: Save cache + id: cache-primes-save + uses: actions/cache/save@v3 + with: + path: cache/ + key: crawler-cache + - name: Publish summary changes uses: stefanzweifel/git-auto-commit-action@v4 with: