From 3e7d064cc4c66f1c5c982e8c1be59cbde9389f8f Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Mon, 23 Oct 2023 20:20:38 -0300 Subject: [PATCH] Fixes Dispatcher Behavior --- .github/workflows/deploy-prod.yml | 3 ++- .github/workflows/refresh-deployment.yml | 7 +------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index fd8f816..388e0ec 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -47,4 +47,5 @@ jobs: script: | sudo apt update && sudo apt install -y jq python3-pip cd infra-hideyoshi.com - ./deploy.sh --prod \ No newline at end of file + ./deploy.sh --prod + ./refresh.sh \ No newline at end of file diff --git a/.github/workflows/refresh-deployment.yml b/.github/workflows/refresh-deployment.yml index 3c1f566..90be7fe 100644 --- a/.github/workflows/refresh-deployment.yml +++ b/.github/workflows/refresh-deployment.yml @@ -1,11 +1,6 @@ name: workflow_02 on: - workflow_run: - workflows: ["build"] - branches: [main] - types: - - completed repository_dispatch: types: [refresh-deployments] @@ -21,7 +16,7 @@ jobs: - name: Executing Remote Commands - Refresh All Deployments env: deployments: ${{ github.event.client_payload.deployments }} - if: ${{ env.deployments == '' || github.event.workflow_run.conclusion == 'success' }} + if: ${{ env.deployments == '' }} uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }}