Skip to content

Commit

Permalink
Prefer downloading .json.lz4
Browse files Browse the repository at this point in the history
  • Loading branch information
c032 committed Jul 26, 2024
1 parent d1034a9 commit 9f216cb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/daily-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: "daily-update"
on:
schedule:
- cron: "15 5 * * *"
push:
paths:
- ".github/**"

jobs:
daily-update:
Expand All @@ -22,7 +25,7 @@ jobs:
run: |
pip install -r requirements.txt
- name: "Download `animetitles.json`"
- name: "Download `animetitles.json.lz4`"
run: |
mkdir -p 'data'
Expand All @@ -37,9 +40,12 @@ jobs:
curl \
--verbose \
--fail --fail-early \
--compressed \
'https://ddl.c032.dev/anidb/animetitles.json'
) > 'data/animetitles.json'
'https://ddl.c032.dev/anidb/animetitles.json.lz4'
) > 'data/animetitles.json.lz4'
- name: "Decompress `animetitles.json.lz4`"
run: |
lz4 -d --rm 'data/animetitles.json.lz4'
- name: "Sanity check"
run: |
Expand All @@ -54,4 +60,4 @@ jobs:
run: |
git add --all -v 'data"
git commit -m 'Daily update'
git push origin main
git push 'origin' 'main'

0 comments on commit 9f216cb

Please sign in to comment.