From ea202ff476172f1adbe95ceb228dc673254298b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B4=D8=B1=D9=83=D8=A9=20=D8=AE=D8=A8=D9=8A=D8=B1=20?= =?UTF-8?q?=D8=A7=D9=84=D9=85=D8=AD=D8=AF=D9=88=D8=AF=D8=A9?= Date: Tue, 18 Nov 2025 09:28:02 +0200 Subject: [PATCH] Refactor deploy condition for dev server --- .github/workflows/pull_code.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_code.yml b/.github/workflows/pull_code.yml index a6e05a2..e4963d4 100644 --- a/.github/workflows/pull_code.yml +++ b/.github/workflows/pull_code.yml @@ -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: |