rahuldkjain / github-profile-readme-generator

🚀 Generate GitHub profile README easily with the latest add-ons like visitors count, GitHub stats, etc using minimal UI.
https://rahuldkjain.github.io/gh-profile-readme-generator
Apache License 2.0
21.73k stars 6.91k forks source link

Update the Addon - Dynamic Latest Blog Posts section with the latest workflow #660

Open arafatiqbal opened 2 years ago

arafatiqbal commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I wanted to add the workflow to dynamically update with latest blog posts. I noticed the workflow code in the addon section was old. That old code doesn't have a few things like letting you run the workflow manually.

Describe the solution you'd like A clear and concise description of what you want to happen. I want to update the section for dynamic latest blog posts to include the latest workflow code.

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Your contribution means alot. 🙌 Join Discord Server (https://discord.gg/HHMs7Eg) for discussing issues, pull-requests, new features, etc.

arafatiqbal commented 2 years ago

Old workflow code

name: Latest blog post workflow
on:
  schedule:
    # Runs every hour
    - cron: '0 * * * *'
jobs:
  update-readme-with-blog:
    name: Update this repo's README with latest blog posts
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: gautamkrishnar/blog-post-workflow@master
        with:
          feed_list: 'https://dev.to/feed/rahuldkjain, https://medium.com/feed/@rahuldkjain'

New workflow code

name: Latest blog post workflow
on:
  schedule: # Run workflow automatically
    - cron: '0 * * * *' # Runs every hour, on the hour
  workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly

jobs:
  update-readme-with-blog:
    name: Update this repo's README with latest blog posts
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Pull in dev.to posts
        uses: gautamkrishnar/blog-post-workflow@v1
        with:
          feed_list: "https://dev.to/feed/gautamkrishnar,https://www.gautamkrishnar.com/feed/"
arafatiqbal commented 2 years ago

I'm going to take this on, if that's fine?