Skip to content

Threads-Bot Daily Post #80

Threads-Bot Daily Post

Threads-Bot Daily Post #80

name: Threads-Bot Daily Post
on:
schedule:
# Run at 9:15 AM UTC every day (15 minutes after X-Bot to stagger the posts)
- cron: '15 9 * * *'
# Allow manual triggering for testing
workflow_dispatch:
jobs:
post-year-progress:
runs-on: ubuntu-latest
environment: Production
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests python-dotenv
- name: Run Threads-Bot
env:
THREADS_USER_ID: ${{ secrets.THREADS_USER_ID }}
THREADS_ACCESS_TOKEN: ${{ secrets.THREADS_ACCESS_TOKEN }}
run: |
cd apps/bots
python threads-bot.py