Skip to content

Rss Feed Filter by author #247

Closed Answered by gautamkrishnar
manishtiwari25 asked this question in Q&A
Discussion options

You must be logged in to vote

just use item_exec. You will be able to filter it. in this case:

name: Latest Contributions
on:
  schedule:
    # Runs every hour
    - cron: "0 2 * * *"
  workflow_dispatch:
permissions:
  contents: write
jobs:
  update-readme-with-stackexchange:
    name: Update this repo's README with latest contributions
    runs-on: ubuntu-latest
    steps:
      - uses: gautamkrishnar/blog-post-workflow@master
        with:
          comment_tag_name: "Blog"
          feed_list: "https://blogs.bitesinbyte.com/feed.xml"
          max_post_count: 3
          item_exec: |
                     if (item.author !== "manishtiwari25") post = null;

Read more: #34 (comment)

You can also put console.log(item) …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@manishtiwari25
Comment options

Answer selected by manishtiwari25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants