Merge branch 'dev_odex_hr' of https://github.com/expsa/odex_30 into dev_odex_hr

This commit is contained in:
Mostafa 2025-11-19 09:52:23 -08:00
commit ffd9da8577
1 changed files with 14 additions and 8 deletions

View File

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- dev_odex_base - dev_odex_base
- dev_odex_hr
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@ -18,11 +19,16 @@ on:
jobs: jobs:
deploy_dev_server: deploy_dev_server:
name: Deploy to Dev Servers name: Deploy to dev server <159.89.22.77>
runs-on: odex30-runner runs-on: odex30-runner
if: (github.ref == 'refs/heads/dev_odex_base' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'dev')) if: |
steps: (github.ref == 'refs/heads/dev_odex_base' || github.ref == 'refs/heads/dev_odex_hr') &&
- name: Checkout And Restart Project (github.event_name == 'push' ||
run: | (github.event_name == 'workflow_dispatch' && github.event.inputs.environment != ''))
sudo chmod +x /home/${{ secrets.CLIENT_USER }}/scripts/pull/pull_code.sh
sudo /home/${{ secrets.CLIENT_USER }}/scripts/pull/pull_code.sh steps:
- name: Checkout And Restart Project
run: |
echo "** [INFO] Running on branch --> ${GITHUB_REF#refs/heads/}"
sudo chmod +x /home/${{ secrets.CLIENT_USER }}/scripts/pull/pull_code.sh
sudo /home/${{ secrets.CLIENT_USER }}/scripts/pull/pull_code.sh