Fixes Desired Behavior

This commit is contained in:
2023-10-23 20:09:30 -03:00
parent 57d1cf5453
commit 7b42f97248
3 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 --staging
./deploy.sh --staging
./refresh.sh

View File

@@ -14,7 +14,6 @@ jobs:
name: Refresh deployments
environment: prod
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -22,7 +21,7 @@ jobs:
- name: Executing Remote Commands - Refresh All Deployments
env:
deployments: ${{ github.event.client_payload.deployments }}
if: ${{ env.deployments == '' }}
if: ${{ env.deployments == '' || github.event.workflow_run.conclusion == 'success' }}
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}