albertocc / feed-box

:pushpin::newspaper: Update a pinned gist with an RSS/Atom feed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📌📰 Feed-Box

Update a pinned gist with an RSS/Atom feed


license Feed-Box

Feed-Box is a simple GitHub action to update a public gist with the latest entries from any RSS/Atom feed

Setup

Prep work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)

Project setup

  1. Fork this repo
  2. Edit the environment variables in .github/workflows/main.yml:
    • GIST_ID: The ID portion from your gist url:
      https://gist.github.com/username/05c75f4491d78792c767ac8bc07d7e46
    • RSS_URL: The URL of the RSS/Atom feed you want to use:
      'https://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom'
    • You can also set in this file how often you want to update the gist. By default it's updated once a day:
      cron:"0 0 * * * *"
  3. Go to the repo Settings > Secrets
  4. Add the following environment variable:
    • GH_TOKEN: The GitHub token generated above.

Credits

License

MIT License - Copyrights (c) 2020 - Alberto Cabeza Cardiel

About

:pushpin::newspaper: Update a pinned gist with an RSS/Atom feed

License:MIT License


Languages

Language:JavaScript 100.0%