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 6158789 commit 062cfec
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Debugging - List Contents of Current Directory
run: ls -la

- name: Debugging - Print Working Directory
run: pwd

- name: Execute SSH Commands
uses: appleboy/[email protected]
with:
HOST: ${{ secrets.HOST }}
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
cd bahja-isaac-nas-discord-chatbot/bahja-isaac-nas-discord-chatbot
# 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
Expand Down

0 comments on commit 062cfec

Please sign in to comment.