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: |