This commit is contained in:
parent
3f9f40304b
commit
731853ced4
@ -28,6 +28,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
modules_to_update=$(git diff --name-only ${{ gitea.event.before }}..${{ gitea.event.after }} | awk -F/ '{print $1}')
|
modules_to_update=$(git diff --name-only ${{ gitea.event.before }}..${{ gitea.event.after }} | awk -F/ '{print $1}')
|
||||||
echo $modules_to_update
|
echo $modules_to_update
|
||||||
|
|
||||||
|
export SSHPASS=${{ secrets.SERVER_SSH_PASSWORD }}
|
||||||
|
export STACK_PATH="/home/sysop/odoo18/customaddons/bross_hms"
|
||||||
|
|
||||||
|
sshpass -e ssh -p ${{ secrets.SERVER_SSH_PORT }} -o StrictHostKeyChecking=no \
|
||||||
|
${{ secrets.SERVER_SSH_USER }}@${{ secrets.SERVER_SSH_HOST }} "echo $modules_to_update > testing_file"
|
||||||
|
|
||||||
- name: Deploy to main environment
|
- name: Deploy to main environment
|
||||||
if: gitea.ref == 'refs/heads/dev'
|
if: gitea.ref == 'refs/heads/dev'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user