Fixes Desired Behavior
This commit is contained in:
3
.github/workflows/deploy-staging.yml
vendored
3
.github/workflows/deploy-staging.yml
vendored
@@ -47,4 +47,5 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
sudo apt update && sudo apt install -y jq python3-pip
|
sudo apt update && sudo apt install -y jq python3-pip
|
||||||
cd infra-hideyoshi.com
|
cd infra-hideyoshi.com
|
||||||
./deploy.sh --staging
|
./deploy.sh --staging
|
||||||
|
./refresh.sh
|
||||||
3
.github/workflows/refresh-deployment.yml
vendored
3
.github/workflows/refresh-deployment.yml
vendored
@@ -14,7 +14,6 @@ jobs:
|
|||||||
name: Refresh deployments
|
name: Refresh deployments
|
||||||
environment: prod
|
environment: prod
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -22,7 +21,7 @@ jobs:
|
|||||||
- name: Executing Remote Commands - Refresh All Deployments
|
- name: Executing Remote Commands - Refresh All Deployments
|
||||||
env:
|
env:
|
||||||
deployments: ${{ github.event.client_payload.deployments }}
|
deployments: ${{ github.event.client_payload.deployments }}
|
||||||
if: ${{ env.deployments == '' }}
|
if: ${{ env.deployments == '' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
|||||||
Reference in New Issue
Block a user