-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (34 loc) · 1011 Bytes
/
collect-rss.yml
File metadata and controls
42 lines (34 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Collect RSS Feeds
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
collect:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Discover new RSS feed URLs
run: bun run scripts/populate-rss.ts
- name: Fetch and cache feed content
run: bun run scripts/fetch-feeds.ts
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/products/ data/feeds/
if git diff --staged --quiet; then
echo "No changes to commit."
else
git commit -m "chore: refresh RSS feed cache [skip ci]"
git push
fi