Refactor deploy condition for dev server

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

View File

@ -21,10 +21,11 @@ jobs:
deploy_dev_server:
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')
if: |
(github.ref == 'refs/heads/dev_odex_base' || github.ref == 'refs/heads/dev_odex_hr') &&
(github.event_name == 'push' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.environment != ''))
steps:
- name: Checkout And Restart Project
run: |