From 6a64b63304ed55c06f0a00968c53ca50d26f1bfc 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: Thu, 4 Sep 2025 14:46:41 +0300 Subject: [PATCH] Create pull_code.yml --- .github/workflows/pull_code.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pull_code.yml diff --git a/.github/workflows/pull_code.yml b/.github/workflows/pull_code.yml new file mode 100644 index 0000000..a976f5a --- /dev/null +++ b/.github/workflows/pull_code.yml @@ -0,0 +1,28 @@ +name: Pull Code + +on: + push: + branches: + - dev_odex_base + + workflow_dispatch: + inputs: + environment: + description: 'Select Server' + required: true + type: choice + options: + - dev + default: dev + +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