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)] workflows: [Continuous Integration (Kava Master)]
types: types:
- completed - completed
push:
# run CI on any push to the feature branch
branches:
- ls-internal-testnet-cd-pipeline
jobs: jobs:
# in order: # in order:
@ -14,6 +18,8 @@ jobs:
# download updated binary and genesis # download updated binary and genesis
# reset application database state (only done on internal testnet) # reset application database state (only done on internal testnet)
reset-chain-to-zero-state: 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 uses: ./.github/workflows/cd-reset-internal-testnet.yml
with: with:
aws-region: us-east-1 aws-region: us-east-1