Skip to content

Fetch rss files

Fetch rss files #24

Workflow file for this run

name: Fetch rss files
on:
schedule:
# At minute 0 past every hour.
- cron: "0 */1 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node 22.x
uses: actions/setup-node@v4
with:
node-version: 22
- name: Fetch RSS Blogs
run: node ./scripts/rss.parse.js
- name: Git Commit
run: |
git config user.name sunrabbit123
git config user.email [email protected]
git add .
git commit -s -m "CI(Github Actions Bot): update blog post list from rssList"
- name: Push changes to main branch
uses: ad-m/[email protected]
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}