From 38acecfb045090ea38028b26e236ca0a3e4758c1 Mon Sep 17 00:00:00 2001 From: Chengming-Li <115936688+Chengming-Li@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:31:12 -0700 Subject: [PATCH] Update cd-branch.yml --- .github/workflows/cd-branch.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd-branch.yml b/.github/workflows/cd-branch.yml index c953d1a25..87e2c64ff 100644 --- a/.github/workflows/cd-branch.yml +++ b/.github/workflows/cd-branch.yml @@ -2,20 +2,18 @@ name: Deploy to Dev on: - pull_request: - types: [opened, synchronize, reopened] - workflow_run: - workflows: - - "Build Frontend" - - "Build Backend" - types: - - completed + repository_dispatch: + types: [trigger-workflow] jobs: deploy: runs-on: ubuntu-latest steps: + - name: Echo Params + run: | + echo "Subdomain: ${{ github.event.client_payload.param1 }}" + echo "Time to Live: ${{ github.event.client_payload.param2 }}" - name: executing remote ssh commands using ssh key uses: appleboy/ssh-action@v1.0.3 with: