Skip to content

Commit a3a918f

Browse files
updated workflow
1 parent 1e85825 commit a3a918f

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/x-bot-daily.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: X-Bot Daily Post
22

33
on:
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Environment variables
22
.env
3+
.env.local
34

45
# iOS & macOS
56
apps/ios/build/

apps/x-bot/run_bot.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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"

0 commit comments

Comments
 (0)