-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 905 Bytes
/
threads-bot-daily.yml
File metadata and controls
35 lines (29 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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