mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
fix: use matching kava version when running seed script against a network
This commit is contained in:
parent
82f5ed5c3c
commit
03a897216a
1
.github/workflows/cd-internal-testnet.yml
vendored
1
.github/workflows/cd-internal-testnet.yml
vendored
@ -46,6 +46,7 @@ jobs:
|
|||||||
seed-script-filename: seed-internal-testnet.sh
|
seed-script-filename: seed-internal-testnet.sh
|
||||||
erc20-deployer-network-name: internal_testnet
|
erc20-deployer-network-name: internal_testnet
|
||||||
genesis_validator_addresses: "kavavaloper1xcgtffvv2yeqmgs3yz4gv29kgjrj8usxrnrlwp kavavaloper1w66m9hdzwgd6uc8g93zqkcumgwzrpcw958sh3s"
|
genesis_validator_addresses: "kavavaloper1xcgtffvv2yeqmgs3yz4gv29kgjrj8usxrnrlwp kavavaloper1w66m9hdzwgd6uc8g93zqkcumgwzrpcw958sh3s"
|
||||||
|
kava_version_filepath: ./ci/env/kava-internal-testnet/KAVA.VERSION
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [start-chain-api]
|
needs: [start-chain-api]
|
||||||
post-pipeline-metrics:
|
post-pipeline-metrics:
|
||||||
|
1
.github/workflows/cd-protonet.yml
vendored
1
.github/workflows/cd-protonet.yml
vendored
@ -46,6 +46,7 @@ jobs:
|
|||||||
seed-script-filename: seed-protonet.sh
|
seed-script-filename: seed-protonet.sh
|
||||||
erc20-deployer-network-name: protonet
|
erc20-deployer-network-name: protonet
|
||||||
genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m"
|
genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m"
|
||||||
|
kava_version_filepath: ./ci/env/kava-protonet/KAVA.VERSION
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [start-chain-api]
|
needs: [start-chain-api]
|
||||||
post-pipeline-metrics:
|
post-pipeline-metrics:
|
||||||
|
13
.github/workflows/cd-seed-chain.yml
vendored
13
.github/workflows/cd-seed-chain.yml
vendored
@ -18,6 +18,9 @@ on:
|
|||||||
genesis_validator_addresses:
|
genesis_validator_addresses:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
kava_version_filepath:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
DEV_WALLET_MNEMONIC:
|
DEV_WALLET_MNEMONIC:
|
||||||
required: true
|
required: true
|
||||||
@ -26,8 +29,16 @@ jobs:
|
|||||||
seed-chain-state:
|
seed-chain-state:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repo from current commit
|
- name: checkout repo from master
|
||||||
uses: actions/checkout@v3
|
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
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
|
1
ci/env/kava-protonet/KAVA.VERSION
vendored
Normal file
1
ci/env/kava-protonet/KAVA.VERSION
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
master
|
Loading…
Reference in New Issue
Block a user