Fetch rss files #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |