diff --git a/.github/workflows/publish-bitcoin.yml b/.github/workflows/publish-bitcoin.yml index 26f5b90..9a862b6 100644 --- a/.github/workflows/publish-bitcoin.yml +++ b/.github/workflows/publish-bitcoin.yml @@ -7,10 +7,9 @@ name: publish-bitcoin on: push: - branches: - - '*' tags: - 'v*' + pull_request: paths: - 'scripts/bitcoin/**' diff --git a/scripts/bitcoin/entrypoint.sh b/scripts/bitcoin/entrypoint.sh index 481eb77..0d92d55 100755 --- a/scripts/bitcoin/entrypoint.sh +++ b/scripts/bitcoin/entrypoint.sh @@ -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}..."