Merge pull request #49 from HideyoshiNakazone/fixes-dispatcher-behavior
Fixes dispatcher behavior
This commit is contained in:
3
.github/workflows/deploy-prod.yml
vendored
3
.github/workflows/deploy-prod.yml
vendored
@@ -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
|
||||
7
.github/workflows/refresh-deployment.yml
vendored
7
.github/workflows/refresh-deployment.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user