File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: X-Bot Daily Post
22
33on :
44 schedule :
5- # Run at midnight UTC (00:00 GMT+0) every day
6- - cron : ' 0 0 * * *'
5+ # Run at 9 AM UTC every day
6+ - cron : ' 0 9 * * *'
77 # Allow manual triggering for testing
88 workflow_dispatch :
99
Original file line number Diff line number Diff line change 11# Environment variables
22.env
3+ .env.local
34
45# iOS & macOS
56apps /ios /build /
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Get the directory where the script is located
4+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5+
6+ # Change to the script directory
7+ cd " $SCRIPT_DIR "
8+
9+ # Run the bot
10+ python3 bot.py
11+
12+ # Log the execution
13+ echo " Bot executed at $( date) " >> " $SCRIPT_DIR /bot_log.txt"
You can’t perform that action at this time.
0 commit comments