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: