Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AliQassab authored Feb 28, 2024
1 parent 6b1578d commit f003f8f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,28 @@ jobs:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
script: |
# Logging start of script execution
echo "Starting script execution..."
# Navigate to the directory
if [ -d "bahja-isaac-nas-discord-chatbot" ]; then
cd bahja-isaac-nas-discord-chatbot || exit 1
else
echo "Error: Directory 'bahja-isaac-nas-discord-chatbot' not found."
exit 1
fi
# Pull latest changes from Git
git pull
# Install npm dependencies
npm install
# Stop chatbot if running
pm2 stop chatbot
# Start chatbot
pm2 start index.js --name chatbot
# Logging completion of script execution
echo "Script execution completed successfully."
# Logging start of script execution
echo "Starting script execution..."
# Navigate to the directory
if [ -d "bahja-isaac-nas-discord-chatbot" ]; then
cd bahja-isaac-nas-discord-chatbot || exit 1
else
echo "Error: Directory 'bahja-isaac-nas-discord-chatbot' not found."
exit 1
fi
# Pull latest changes from Git
git pull
# Install npm dependencies
npm install
# Stop chatbot if running
pm2 stop chatbot
# Start chatbot
pm2 start index.js --name chatbot
# Logging completion of script execution
echo "Script execution completed successfully."

0 comments on commit f003f8f

Please sign in to comment.