Fixes Dispatcher Behavior

This commit is contained in:
2023-10-23 20:20:38 -03:00
parent 10dc558ef6
commit 3e7d064cc4
2 changed files with 3 additions and 7 deletions

View File

@@ -47,4 +47,5 @@ jobs:
script: |
sudo apt update && sudo apt install -y jq python3-pip
cd infra-hideyoshi.com
./deploy.sh --prod
./deploy.sh --prod
./refresh.sh

View File

@@ -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 }}