Skip to content

📌📰 Update a pinned gist with an RSS/Atom feed

License

Notifications You must be signed in to change notification settings

albertocc/feed-box

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌📰 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