Skip to content

Instantly share code, notes, and snippets.

@kaustubhgupta
Created October 12, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaustubhgupta/03d69eec06e5d0283d029a3aea14bf5f to your computer and use it in GitHub Desktop.
Save kaustubhgupta/03d69eec06e5d0283d029a3aea14bf5f to your computer and use it in GitHub Desktop.
name: Latest blog post workflow
on:
push: # Everytime index.html is pushed, this action runs and updates the blogs section!
jobs:
update-readme-with-blog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gautamkrishnar/blog-post-workflow@master
with:
feed_list: <Your feedlist>
max_post_count: 7
readme_path: index.html
template: "$newline <h2 class='h2-blog'><a class='a-lightblue' href=$url>$title</a></h2>$newline <br>" # Do not change the template as it will not render good results!
gh_token: ${{ secrets.TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment