A GitHub Action that updates a section of a README from an RSS feed.
You can use this action in a workflow file like any other:
name: Update this repo's README
on:
schedule:
# Once a day at 8 AM
- cron: 0 8 * * *
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: JasonEtco/rss-to-readme@v1
with:
feed-url: https://jasonet.co/rss.xml
readme-section: feed
The URL to an RSS feed. It's assumed that the RSS feed follow the standard format!
The name of the section of your README to update. This uses JasonEtco/readme-box
to replace a section of the README and update the file. Your README should contain HTML comments like this, where feed
is the the value of readme-section
:
### Example RSS feed:
<!--START_SECTION:feed-->
...
<!--END_SECTION:feed-->
You can inspect this repo's README to see it in use!
The maximum number of items to show from the RSS feed. Defaults to 5
!
You can provide a Mustache template to use when rendering each item in the feed. These will be joined by a newline (\n
). For example:
- uses: JasonEtco/rss-to-readme@v1
with:
feed-url: https://jasonet.co/rss.xml
template: "> {{ excerpt }}\n\n[Read more!]({{ url }})"
You can provide the target branch to update instead of the default.
Path to the README file to update.
- Remix first impressions
- On "Spike work"
- Assorted thoughts on documentation
- On "lurking"
- Probot App or GitHub Action? (Updated)
This started as a little proof-of-concept for @brianlovin!