Skip to content

Commit

Permalink
ci: use info mainnet/testnet given used branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Dec 20, 2024
1 parent 89aa04c commit d66d877
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ jobs:

- name: Retrieve info.json and set snapshot path
run: |
INFO_DOWNLOAD_URL=https://snapshots.elys.network/info.json
# set info.json download url, use mainnet info.json for main branch otherwise use testnet info.json
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
INFO_DOWNLOAD_URL=https://snapshots.elys.network/info-mainnet.json
else
INFO_DOWNLOAD_URL=https://snapshots.elys.network/info-testnet.json
fi
curl -L $INFO_DOWNLOAD_URL -o /tmp/info.json
echo "Info.json downloaded to check snapshot version."
Expand Down

0 comments on commit d66d877

Please sign in to comment.