run cd pipeline on every push to feature branch

only run pipeline if ci was successful
This commit is contained in:
Levi Schoen 2022-12-12 14:12:26 -05:00 committed by GitHub
parent 0bc4547d3c
commit 06b434eaff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,10 @@ on:
workflows: [Continuous Integration (Kava Master)]
types:
- completed
push:
# run CI on any push to the feature branch
branches:
- ls-internal-testnet-cd-pipeline
jobs:
# in order:
@ -14,6 +18,8 @@ jobs:
# download updated binary and genesis
# reset application database state (only done on internal testnet)
reset-chain-to-zero-state:
# only start cd pipeline if last ci run was successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/cd-reset-internal-testnet.yml
with:
aws-region: us-east-1