Skip to content

Commit 157c66a

Browse files
committed
refactor: use lumeweb/cosmos-best-rpc-action and fetch the best rpc endpoint vs a random
1 parent 1ff973a commit 157c66a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ runs:
7373
7474
# Clean up
7575
rm key-config
76-
76+
- name: Find Best RPC Node
77+
uses: lumeweb/[email protected]
78+
id: rpc
7779
- name: Setup Environment Variables
7880
shell: bash
7981
run: |
@@ -84,7 +86,7 @@ runs:
8486
echo "AKASH_NET=$AKASH_NET"
8587
echo "AKASH_VERSION=$(curl -s https://api.github.com/repos/akash-network/provider/releases/latest | jq -r '.tag_name')"
8688
echo "AKASH_CHAIN_ID=$(curl -s "$AKASH_NET/chain-id.txt")"
87-
echo "AKASH_NODE=$(curl -s "$AKASH_NET/rpc-nodes.txt" | shuf -n 1)"
89+
echo "AKASH_NODE=${{ steps.rpc.outputs.best-node }}"
8890
echo "AKASH_KEYRING_BACKEND=os"
8991
echo "AKASH_KEY_NAME=${{ inputs.wallet-name }}"
9092
echo "AKASH_GAS=auto"

0 commit comments

Comments
 (0)