first of all watching this video or read this post
then use this yaml code for github action:
name: Hashnode Blog Posts
on:
schedule:
# Runs every 6 hours of the day
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
update-readme-with-blog:
name: Update this repo's README with the latest blog posts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gautamkrishnar/blog-post-workflow@master
with:
comment_tag_name: "BLOGPOSTS"
feed_list: "<link-to-your-rss>"
template: "$newline - $randomEmoji(๐ฏ,๐ฅ,๐ซ,๐,๐ฎ) [$title]($url)"
commit_message: "recent posts section updated"
gh_token: ${{ secrets.GITHUB_TOKEN }}