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
2.99k stars 268 forks source link

[Bug]: Feed can't be read from github.io repo rss #45

Closed krossovochkin closed 3 years ago

krossovochkin commented 3 years ago

Describe the bug Set up workflow as in your repo (with the only difference that link to feed changed)

Expected behavior Feed is parsed and shown on Readme successfully

Workflow Yml Used

name: Latest blog post workflow
on:
  schedule:
    # Runs every hour
    - cron: '0 * * * *'
  workflow_dispatch:

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:
          max_post_count: "4"
          feed_list: "https:/krossovochkin.github.io/index.xml"

Error says:

Error: https:/krossovochkin.github.io/index.xml runner failed, please verify the configuration. Error:
Error: Error: connect ECONNREFUSED 127.0.0.1:443

https://github.com/krossovochkin/krossovochkin/runs/1442964262?check_suite_focus=true

Thank you

gautamkrishnar commented 3 years ago

@krossovochkin please check the domain you had given. its https://krossovochkin.github.io/index.xml not https:/krossovochkin.github.io/index.xml you missed a /

krossovochkin commented 3 years ago

Thanks, @gautamkrishnar Shame on me, stupid mistake.

But unfortunately it still not working (

Error: https://krossovochkin.github.io/index.xml runner failed, please verify the configuration. Error:
Error: Cannot read response->item->title

https://github.com/krossovochkin/krossovochkin/runs/1444087612?check_suite_focus=true

Maybe you have an idea what's wrong this time?

Thank you

gautamkrishnar commented 3 years ago

@krossovochkin looks like one of your post don't have a title: https://krossovochkin.github.io/about/

<item>
<title/>
<link>https://krossovochkin.github.io/about/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://krossovochkin.github.io/about/</guid>
<description>Vasya Drobushkov @krossovochkin About me Android developer with mathematical background. Experienced in developing smart applications for Android, and also in mobile game development. Punctual, always pay attention to details. Fast learner, greedy for knowledge. Links LinkedIn Github StackOverflow GoodReads Medium HackerNoon Facebook Twitter Kaggle SpeakerDeck Reddit HackerRank LeetCode Projects Fibery Unofficial Android client for fibery.io. MVVM, Android Architecture components, coroutines. KWeather Android weather app. MVI, Kotlin MPP, Jetpack Compose.</description>
</item>

A title is required for the blog post to show up, please remove that item from the rss feed/add title to that item.

Screenshot 2020-11-24 at 2 08 52 AM
krossovochkin commented 3 years ago

Changed URL to link to posts RSS: https://krossovochkin.github.io/posts/index.xml

And it works now. Thanks!

gautamkrishnar commented 3 years ago

👍🏻 Awesome