mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +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)]
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user