diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d4fcde1..2acfa85 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Docker Build, Push and Deploy on: push: - branches: + branches-ignore: - main jobs: @@ -28,7 +28,7 @@ jobs: echo "GOOGLE_MAPS_API_KEY=${{secrets.GOOGLE_MAPS_API_KEY}}" >> .env echo "SERVER_URL=${{secrets.SERVER_URL}}" >> .env echo "DEVELOPER_MODE_ON=${{secrets.DEVELOPER_MODE_ON}}" >> .env - + - name: Create SSH key file run: echo -e "${{ secrets.EC2_SSH_KEY }}" > ~/ec2_key env: diff --git a/services/Actions.js b/services/Actions.js index a0cf62d..9c47cad 100644 --- a/services/Actions.js +++ b/services/Actions.js @@ -112,6 +112,8 @@ class Actions { async send_message(recipient, message, media_url=null) { try { + + logger.info(`Sending message to ${recipient} with media : ${media_url}| Developer mode : ${process.env.DEVELOPER_MODE_ON}`); let body = { body: message, from: `whatsapp:${twilioNumber}`,