Skip to content

Fetch and Create Blog Posts #77

Fetch and Create Blog Posts

Fetch and Create Blog Posts #77

Workflow file for this run

name: Fetch and Create Blog Posts
on:
schedule:
- cron: '0 0 * * *' # Run once per day at midnight
workflow_dispatch:
jobs:
fetch_and_create_posts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: move to blog action
run: cd .github/actions/blog && yarn && node rss_feed.js
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Add new blog posts'
title: 'New blog posts from RSS feed'
body: 'Automatically generated PR to add new blog posts fetched from the RSS feed.'
branch: new-blog-posts