24 lines
879 B
YAML
24 lines
879 B
YAML
name: 3CatInfo RSS to BSKY
|
|
description: "A GitHub Action to post 324 (now 3CatInfo) RSS feed items to Bluesky (BSKY) using a Python script."
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '*/30 * * * *' # every 30 minutes
|
|
|
|
jobs:
|
|
post:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.14'
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install atproto fastfeedparser beautifulsoup4 httpx arrow charset-normalizer
|
|
- name: Run script
|
|
run: |
|
|
python3 rss2bsky.py https://api.3cat.cat/noticies\?_format\=rss\&origen\=frontal\&frontal\=n324-portada-noticia\&version\=2.0 ${{ secrets.BSKY_324_HANDLE }} ${{ secrets.BSKY_324_USERNAME }} ${{ secrets.BSKY_324_APP_PASSWORD }} --service "https://eurosky.social"
|