From 06b434eaffb589cd0a33a4dbbc73f71029bb7512 Mon Sep 17 00:00:00 2001 From: Levi Schoen Date: Mon, 12 Dec 2022 14:12:26 -0500 Subject: [PATCH] run cd pipeline on every push to feature branch only run pipeline if ci was successful --- .github/workflows/cd-internal-testnet.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cd-internal-testnet.yml b/.github/workflows/cd-internal-testnet.yml index fd8b5251..b9e382c5 100644 --- a/.github/workflows/cd-internal-testnet.yml +++ b/.github/workflows/cd-internal-testnet.yml @@ -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