Skip to content

Commit

Permalink
chore(ci): fix gentx files
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Jan 13, 2025
1 parent f7aa366 commit e6b2c8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gentx-govgen-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
# - "ci/gentx"

env:
GENTX_FILES: "./govgen-1/gentx/*.json"
GOVGEND_VERSION: "v1.0.1"
GENESIS_URL: "https://atomone.fra1.digitaloceanspaces.com/govgen/govgen-1/genesis.json"
MUST_STAKED_AMOUNT: "1000000"
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Check gentx values
run: |
for f in ${{ steps.files.outputs.all }}; do
if [[ "$f" == "*gentx/*.json" ]]; then
if [[ "$f" == "${GENTX_FILES}" ]]; then
echo "checking file: $f"
COMMISSION_RATE=$(cat $f | jq -r '.body.messages[0].commission.rate')
COMMISSION_MAX_RATE=$(cat $f | jq -r '.body.messages[0].commission.max_rate')
Expand Down Expand Up @@ -76,7 +77,7 @@ jobs:
# wget -O $HOME/.govgen/config/genesis.json $GENESIS_URL
for f in "govgen-1/gentx/*.json"; do
for f in "${GENTX_FILES}"; do
ADDR=$(cat $f | jq -r '.body.messages[0].delegator_address')
govgend add-genesis-account $ADDR 10000000ugovgen
done
Expand Down

0 comments on commit e6b2c8d

Please sign in to comment.