Merge pull request #50 from HideyoshiNakazone/staging

Staging - Fixes dispatcher behavior
This commit is contained in:
2023-10-23 20:22:55 -03:00
committed by GitHub
2 changed files with 3 additions and 7 deletions

View File

@@ -48,3 +48,4 @@ jobs:
sudo apt update && sudo apt install -y jq python3-pip
cd infra-hideyoshi.com
./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 }}