Skip to content

Latest commit

History

History
26 lines (24 loc) 路 886 Bytes

File metadata and controls

26 lines (24 loc) 路 886 Bytes

Connect your Hashnode blog's RSS to github portfolio

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 }}