Skip to content

Commit

Permalink
show logs for 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiviexd committed Jan 22, 2025
1 parent 61aa2d0 commit fed3b1a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,9 @@ jobs:
sleep 2
pm2 start axerbot
echo "Success! Waiting for bot to come online..."
echo "Success! Showing startup logs for 1 minute..."
sleep 3
# Wait for "AxerBot is online" message in logs
timeout 60 bash -c '
until pm2 logs axerbot --lines 50 | grep -q "AxerBot is online!"; do
sleep 1
done
pm2 logs axerbot --lines 50 | grep -B 50 "AxerBot is online!"
'
timeout 60 pm2 logs axerbot --lines 50
notify:
needs: deploy
runs-on: ubuntu-latest
Expand Down

0 comments on commit fed3b1a

Please sign in to comment.