gautamkrishnar / blog-post-workflow

Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
https://github.com/marketplace/actions/blog-post-workflow
GNU Affero General Public License v3.0
3.02k stars 269 forks source link

Update HTML file using the workflow #265

Closed muktoakash closed 1 month ago

muktoakash commented 3 months ago
gautamkrishnar commented 2 months ago

@muktoakash forking the repo is not required in this case. simply pass down the readme_path to the main blog post workflow itself. It should work just fine.

Just use the following file:

name: Latest blog post workflow
on:
  schedule:
    # Runs every hour, on the hour
    - cron: "0 * * * *"
  workflow_dispatch:
permissions:
      contents: write

jobs:
  update-readme-with-youtube:
    name: Update this repo's index.html with latest blog titles from blogspot
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: gautamkrishnar/blog-post-workflow@v1
        with:
          readme_path: 'index.html'
          feed_list: "http://blog_name.blogspot.com/feeds/posts/default?alt=rss"
          template: '<li><a href="$url">$title</a></li>$newline'
          committer_email: "your_email@example.com"
gautamkrishnar commented 1 month ago

Thanks for contributing. LGTM 👍🏻

gautamkrishnar commented 1 month ago

@all-contributors please add @muktoakash for docs

allcontributors[bot] commented 1 month ago

@gautamkrishnar

I've put up a pull request to add @muktoakash! :tada: