Add dev_odex_hr branch to deployment workflow

This commit is contained in:
شركة خبير المحدودة 2025-11-18 09:12:35 +02:00 committed by GitHub
parent d48a6967cf
commit 1251b04c83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 8 deletions

View File

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