Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Oct 19, 2024
1 parent b145953 commit 86eff2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-bitcoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ name: publish-bitcoin

on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:
paths:
- 'scripts/bitcoin/**'

Expand Down
2 changes: 1 addition & 1 deletion scripts/bitcoin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if [[ "$NETWORK" == "regtest" ]]; then
BTCSTAKER_ADDR=$(bitcoin-cli -${NETWORK} -rpcuser="$RPC_USER" -rpcpassword="$RPC_PASS" -rpcwallet="$BTCSTAKER_WALLET_NAME" getaddressesbylabel "${BTCSTAKER_WALLET_NAME}" | jq -r 'keys[0]')
echo "Imported BTC address: ${BTCSTAKER_ADDR}"

echo "Generating a block every ${GENERATE_INTERVAL_SECS} seconds."
echo "Generating a block every ${GENERATE_INTERVAL_SECS} seconds..."
while true; do
bitcoin-cli -${NETWORK} -rpcuser="$RPC_USER" -rpcpassword="$RPC_PASS" -rpcwallet="$WALLET_NAME" -generate 1
echo "Periodically send funds to the address ${BTCSTAKER_ADDR} for wallet ${BTCSTAKER_WALLET_NAME}..."
Expand Down

0 comments on commit 86eff2d

Please sign in to comment.