Skip to content

Commit

Permalink
devnet pipeline now is working with commit hash to set the chain vers…
Browse files Browse the repository at this point in the history
…ion (#602)
  • Loading branch information
fenriz07 authored Jun 19, 2024
1 parent f7dab91 commit af2fa9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v4
- name: Setting variables
run: |
VER=$(cat .version)
VER=v${{ github.sha }}
echo "VERSION=$VER" >> $GITHUB_ENV
echo "BINARY=${NAME}d" >> $GITHUB_ENV
echo "NAME_WITH_VERSION=${NAME}-${VER}" >> $GITHUB_ENV
Expand Down Expand Up @@ -111,15 +111,21 @@ jobs:
--deposit=10000000uelys \
--upgrade-height=$height \
--title="${{env.VERSION}}" \
--description="Elys Network${{env.VERSION}} released. Focuses on enhancements and codebase improvements." \
--description="Elys Network version ${{env.VERSION}} released. Focuses on enhancements and codebase improvements." \
--upgrade-info="{\"binaries\":{\"linux/amd64\":\"https://snapshots.elys.network/releases/${{env.NAME_WITH_VERSION}}.tar.gz\"}}" \
--no-validate \
--from=mallorca \
$OPTIONS | extract_txhash
)
sleep 10

#Tx Hash
echo "software upgrade tx hash:" $txhash
proposalid=$($ELYSD q tx $txhash --node $NODE | extract_proposal_id)

#Proposal Id
echo "Proposal Id:" $proposalid

# vote on proposal
$ELYSD tx gov vote $proposalid yes --from=fuji $OPTIONS
$ELYSD tx gov vote $proposalid yes --from=mallorca $OPTIONS
Expand Down
1 change: 0 additions & 1 deletion .version

This file was deleted.

0 comments on commit af2fa9d

Please sign in to comment.