GithubHelp home page GithubHelp logo

leereilly / rss-to-readme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasonetco/rss-to-readme

0.0 2.0 0.0 1.29 MB

๐Ÿ“ก๐Ÿ“ A GitHub Action that updates a section of a README from an RSS feed.

License: MIT License

TypeScript 100.00%

rss-to-readme's Introduction

๐Ÿ“ก๐Ÿ“

RSS to README Action

A GitHub Action that updates a section of a README from an RSS feed.


Usage

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

Options

feed-url:

The URL to an RSS feed. It's assumed that the RSS feed follow the standard format!

readme-section:

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!

max (default: 5)

The maximum number of items to show from the RSS feed. Defaults to 5!

template (default: "* [{{ title }}]({{ link }}))")

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 }})"

branch (default: github.repository.default_branch)

You can provide the target branch to update instead of the default.

path (default: 'README.md')

Path to the README file to update.

Example RSS feed:

This started as a little proof-of-concept for @brianlovin!

rss-to-readme's People

Contributors

bnb avatar dependabot[bot] avatar flcdrg avatar github-actions[bot] avatar jasonetco avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.