diff --git a/.github/workflows/auto_deploy_pr.yml b/.github/workflows/auto_deploy_pr.yml index a3d0ed17e..fe47216ef 100644 --- a/.github/workflows/auto_deploy_pr.yml +++ b/.github/workflows/auto_deploy_pr.yml @@ -5,7 +5,7 @@ name: Auto Deploy Pr # https://docs.github.com/cn/actions/using-workflows/events-that-trigger-workflows#workflow_run env: - nocobase_deploy_sh: /home/ecs-user/nocobase/auto-deploy-pr/nocobase-deploy.sh + nocobase_deploy_sh_dir: /home/ecs-user/nocobase/auto-deploy-pr/ on: workflow_run: workflows: [ "Aliyun Container Registry" ] @@ -53,4 +53,5 @@ jobs: username: ${{ secrets.deploy_host_username }} password: ${{ secrets.deploy_host_password }} script: | - ${{ env.nocobase_deploy_sh }} up ${{ env.pr_number }} + cd ${{ env.nocobase_deploy_sh_dir }} + ./nocobase-deploy.sh up ${{ env.pr_number }} diff --git a/.github/workflows/auto_down_deploy_pr.yml b/.github/workflows/auto_down_deploy_pr.yml index dd3bf7892..6ea405a2a 100644 --- a/.github/workflows/auto_down_deploy_pr.yml +++ b/.github/workflows/auto_down_deploy_pr.yml @@ -5,7 +5,7 @@ name: Auto down deploy # https://docs.github.com/cn/actions/using-workflows/events-that-trigger-workflows#workflow_run env: - nocobase_deploy_sh: /home/ecs-user/nocobase/auto-deploy-pr/nocobase-deploy.sh + nocobase_deploy_sh_dir: /home/ecs-user/nocobase/auto-deploy-pr/ on: pull_request: types: @@ -29,4 +29,5 @@ jobs: username: ${{ secrets.deploy_host_username }} password: ${{ secrets.deploy_host_password }} script: | - ${{ env.nocobase_deploy_sh }} down ${{ env.pr_number }} + cd ${{ env.nocobase_deploy_sh_dir }} + ./nocobase-deploy.sh down ${{ env.pr_number }} diff --git a/.github/workflows/manual_deploy_fork_pr.yml b/.github/workflows/manual_deploy_fork_pr.yml index 0833863bf..c457af95b 100644 --- a/.github/workflows/manual_deploy_fork_pr.yml +++ b/.github/workflows/manual_deploy_fork_pr.yml @@ -2,7 +2,8 @@ name: manual_down_deploy_pr # deploy_host # deploy_host_username # deploy_host_password - +env: + nocobase_deploy_sh_dir: /home/ecs-user/nocobase/auto-deploy-pr/ on: workflow_dispatch: inputs: @@ -108,4 +109,5 @@ jobs: username: ${{ secrets.deploy_host_username }} password: ${{ secrets.deploy_host_password }} script: | - ${{ env.nocobase_deploy_sh }} up ${{ env.pr_number }} + cd ${{ env.nocobase_deploy_sh_dir }} + ./nocobase-deploy.sh up ${{ env.pr_number }}