GitHub Action that automatically posts the latest RSS/Atom feed item to Mastodon, Twitter, Discord, Slack, or Bluesky with customizable formatting.
git clone https://github.com/lwojcik/github-action-feed-to-social-media.gitThis GitHub Action monitors RSS and Atom feeds, detects new items, and automatically posts them to your choice of social media platforms including Mastodon, Twitter, Discord, Slack, and Bluesky. It uses a configurable strategy to identify the newest feed item (by publication date, first, or last in feed) and maintains a cache to prevent duplicate posts. Each supported platform can use its own custom post format with template tags like {title}, {link}, {description}, and iTunes-specific fields, allowing you to optimize messages for platform-specific features and character limits. The Action handles authentication via API tokens and webhooks, with sensitive credentials stored as encrypted GitHub secrets.
Add the action to your GitHub workflow with your feed URL and platform credentials. Configure the newestItemStrategy (latestDate, first, or last) and optional custom post formats for each channel. Store API tokens and access credentials as encrypted GitHub secrets. Ensure your repository has read/write workflow permissions so the Action can maintain feed cache to avoid duplicates.
Automatically share new blog posts across multiple social networks
Cross-post podcast episodes to Discord and Slack communities
Distribute news feed updates to team communication channels
Update Mastodon profile metadata with latest feed information
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/lwojcik/github-action-feed-to-social-mediaCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a GitHub Action that automatically posts the latest item from [RSS_FEED_URL] to [PLATFORM_NAME] (e.g., Mastodon, Twitter, Discord, Slack, Bluesky). The post should include the title, a short excerpt, and a link to the full article. Ensure the action runs daily and handles errors gracefully. Provide the complete YAML configuration for the workflow.
# GitHub Action for RSS to Social Media Posting
Here's a complete GitHub Action workflow that posts the latest RSS feed item to Mastodon:
```yaml
name: RSS to Mastodon
on:
schedule:
- cron: '0 0 * * *'
jobs:
post-to-mastodon:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Post to Mastodon
uses: jasonetco/rss-to-mastodon-action@v1
with:
rss-feed-url: 'https://example.com/feed.xml'
mastodon-instance: 'mastodon.social'
mastodon-access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
post-title: true
post-excerpt: true
post-link: true
```
## How It Works
- The action runs daily at midnight UTC.
- It fetches the latest item from the specified RSS feed.
- It posts the title, a short excerpt, and a link to your Mastodon account.
- The Mastodon access token should be stored in your GitHub repository secrets.
Community communication platform with voice and text channels
Connected. Inclusive. Flexible.
No-code SaaS integration and data sync
Autonomous drone operations powered by AI
Fast and reliable CNC machining services.
Fast and accessible loans for everyone
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan