diff --git a/.github/workflows/daily-digest.yml b/.github/workflows/weekly-digest.yml similarity index 83% rename from .github/workflows/daily-digest.yml rename to .github/workflows/weekly-digest.yml index a1988e2..0e95817 100644 --- a/.github/workflows/daily-digest.yml +++ b/.github/workflows/weekly-digest.yml @@ -1,8 +1,8 @@ -name: Daily Reading Digest +name: Weekly Reading Digest on: schedule: - - cron: '30 2 * * *' # 8:00am IST daily + - cron: '30 2 * * 5' # 8:00am IST every Friday workflow_dispatch: # also triggerable manually from GitHub Actions tab jobs: @@ -30,6 +30,6 @@ jobs: git config user.email "contact@fplaunchpad.org" git add _blog/ git diff --cached --quiet && echo "Nothing new to commit" || ( - git commit -m "Daily reading digest $(date -u +%Y-%m-%d)" + git commit -m "Weekly reading digest $(date -u +%Y-%m-%d)" git push ) diff --git a/_data/feeds.yml b/_data/feeds.yml index 92766d3..026926f 100644 --- a/_data/feeds.yml +++ b/_data/feeds.yml @@ -9,7 +9,7 @@ members: site: https://kartiknagar.github.io feed: https://kartiknagar.github.io/index.xml -friends: +collaborators: - name: Anil Madhavapeddy site: https://anil.recoil.org feed: https://anil.recoil.org/feed.xml diff --git a/scripts/fetch_digest.py b/scripts/fetch_digest.py index ae22599..f774f02 100644 --- a/scripts/fetch_digest.py +++ b/scripts/fetch_digest.py @@ -15,7 +15,7 @@ REPO_ROOT = Path(__file__).parent.parent FEEDS_FILE = REPO_ROOT / "_data" / "feeds.yml" BLOG_DIR = REPO_ROOT / "_blog" -WINDOW_HOURS = 25 +WINDOW_HOURS = 24 * 7 def load_feeds(): @@ -44,9 +44,9 @@ def fetch_posts_for_group(feed_list, seen_urls, since): posts = [] for feed_info in feed_list: try: - parsed = feedparser.parse(feed_info['url']) + parsed = feedparser.parse(feed_info['feed']) except Exception as e: - print(f"Warning: could not fetch {feed_info['url']}: {e}", file=sys.stderr) + print(f"Warning: could not fetch {feed_info['feed']}: {e}", file=sys.stderr) continue for entry in parsed.entries: