Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Hashnode RSS Feed doesn't appear on GitHub Profile #13

Closed
polilluminato opened this issue Aug 5, 2020 · 4 comments
Closed

[Bug]: Hashnode RSS Feed doesn't appear on GitHub Profile #13

polilluminato opened this issue Aug 5, 2020 · 4 comments
Labels
invalid Not a bug or feature request

Comments

@polilluminato
Copy link
Contributor

polilluminato commented Aug 5, 2020

I tried to use this workflow, in particular the standard blog-post-workflow.yml, to add to my GitHub profile my RSS feed on Hashnode.

Steps to reproduce the behavior

  1. Use the standard blog-post-workflow.yml as described in the readme file
  2. Add to the feed_list option my RSS feed on Hasnode: https://polilluminato.hashnode.dev/rss.xml
  3. Add the workflow_dispatch: option in the on section of the blog-post-workflow.yml as described in this video on YouTube by codeSTACKr
  4. Add the tag on my profile page
<!-- BLOG-POST-LIST:START -->
<!-- BLOG-POST-LIST:END -->
  1. Run manually the workflow on GitHub actions
  2. Nothing appears on my GitHub profile

My blog-post-workflow.yml

name: Lastest Hashnode Blog Post
on:
  schedule:
    # Runs every hour
    - cron: '0 * * * *'
  workflow_dispatch:

jobs:
  update-readme-with-blog:
    name: Update this repo's README with latest Hashnode blog posts
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: gautamkrishnar/blog-post-workflow@master
        with:
          comment_tag_name: "HASHNODE"
          commit_message: "Updated readme with the latest Hashnode Blog data"
          feed_list: "https://polilluminato.hashnode.dev/rss.xml"

Expected behavior
I expected to see the list of the last 5 blog posts on Hashnode based on my RSS feed but nothing appears.

@polilluminato polilluminato added the bug Something isn't working label Aug 5, 2020
@gautamkrishnar
Copy link
Owner

gautamkrishnar commented Aug 6, 2020

@polilluminato thanks a lot for opening an issue. It's because you used the following as the comment on readme:

<!-- BLOG-POST-LIST:START -->
<!-- BLOG-POST-LIST:END -->

The comment should be the following since you had given comment_tag_name: "HASHNODE" as parameter:

<!-- HASHNODE:START -->
<!-- HASHNODE:END -->

@gautamkrishnar gautamkrishnar added invalid Not a bug or feature request and removed bug Something isn't working labels Aug 6, 2020
@gautamkrishnar
Copy link
Owner

Also released a fix for this in the latest version. Now the workflow will fail if you had specified the wrong comment on your readme: https://github.com/gautamkrishnar/blog-post-workflow/releases/tag/1.0.8

@mnik7044
Copy link

Hey @gautamkrishnar what if I want to add the header image of my blog also in the latest blogs section how can we do it.

@gautamkrishnar
Copy link
Owner

@mnik7044 you can use custom_tags option. Read more about it here: https://github.com/gautamkrishnar/blog-post-workflow#options and #28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Not a bug or feature request
Projects
None yet
Development

No branches or pull requests

3 participants