mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-24 23:35:19 +00:00
run cd pipeline on every push to feature branch
only run pipeline if ci was successful
This commit is contained in:
parent
0bc4547d3c
commit
06b434eaff
6
.github/workflows/cd-internal-testnet.yml
vendored
6
.github/workflows/cd-internal-testnet.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user