fix: use matching kava version when running seed script against a network

This commit is contained in:
Levi Schoen 2023-04-06 13:51:42 -07:00
parent 82f5ed5c3c
commit 03a897216a
4 changed files with 15 additions and 1 deletions

View File

@ -46,6 +46,7 @@ jobs:
seed-script-filename: seed-internal-testnet.sh
erc20-deployer-network-name: internal_testnet
genesis_validator_addresses: "kavavaloper1xcgtffvv2yeqmgs3yz4gv29kgjrj8usxrnrlwp kavavaloper1w66m9hdzwgd6uc8g93zqkcumgwzrpcw958sh3s"
kava_version_filepath: ./ci/env/kava-internal-testnet/KAVA.VERSION
secrets: inherit
needs: [start-chain-api]
post-pipeline-metrics:

View File

@ -46,6 +46,7 @@ jobs:
seed-script-filename: seed-protonet.sh
erc20-deployer-network-name: protonet
genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m"
kava_version_filepath: ./ci/env/kava-protonet/KAVA.VERSION
secrets: inherit
needs: [start-chain-api]
post-pipeline-metrics:

View File

@ -18,6 +18,9 @@ on:
genesis_validator_addresses:
required: true
type: string
kava_version_filepath:
required: true
type: string
secrets:
DEV_WALLET_MNEMONIC:
required: true
@ -26,8 +29,16 @@ jobs:
seed-chain-state:
runs-on: ubuntu-latest
steps:
- name: checkout repo from current commit
- name: checkout repo from master
uses: actions/checkout@v3
with:
ref: master
- name: checkout version of kava used by network
run: |
git pull -p
git checkout $(cat ${KAVA_VERSION_FILEPATH})
env:
KAVA_VERSION_FILEPATH: ${{ inputs.kava_version_filepath }}
- name: Set up Go
uses: actions/setup-go@v3
with:

1
ci/env/kava-protonet/KAVA.VERSION vendored Normal file
View File

@ -0,0 +1 @@
master