From f38f60fe1e008e1867b9eaaf7a3a5d62fd06d483 Mon Sep 17 00:00:00 2001 From: fewensa <37804932+fewensa@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:20:34 +0800 Subject: [PATCH] Trigger g2.testnets for force debug node --- .github/workflows/trigger-tracing-node.yml | 28 +++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/trigger-tracing-node.yml b/.github/workflows/trigger-tracing-node.yml index 55d4d8d..ca3c3ce 100644 --- a/.github/workflows/trigger-tracing-node.yml +++ b/.github/workflows/trigger-tracing-node.yml @@ -67,20 +67,32 @@ jobs: NETWORK='${{ github.event.inputs.network }}' EFFECT_FILE='' if [[ "${NETWORK}" == "koi" ]]; then - EFFECT_FILE=playbooks/koi_nodes/host_vars/g3.testnets + jq -n \ + --arg file playbooks/darwinia_nodes/host_vars/g2.testnets \ + --arg key .substrate_node_runner.node.image \ + --arg value ${DOCKER_IMAGE_TAG} \ + '{file: $file, key: $key, value: $value}' >> /tmp/changes.json + jq -n \ + --arg file playbooks/darwinia_nodes/host_vars/g3.testnets \ + --arg key .substrate_node_runner.node.image \ + --arg value ${DOCKER_IMAGE_TAG} \ + '{file: $file, key: $key, value: $value}' >> /tmp/changes.json fi if [[ "${NETWORK}" == "crab" ]]; then - EFFECT_FILE=playbooks/crab_nodes/host_vars/c1.crab2 + jq -n \ + --arg file playbooks/darwinia_nodes/host_vars/c1.crab2 \ + --arg key .substrate_node_runner.node.image \ + --arg value ${DOCKER_IMAGE_TAG} \ + '{file: $file, key: $key, value: $value}' >> /tmp/changes.json fi if [[ "${NETWORK}" == "darwinia" ]]; then - EFFECT_FILE=playbooks/darwinia_nodes/host_vars/c1.darwinia2 + jq -n \ + --arg file playbooks/darwinia_nodes/host_vars/c1.darwinia2 \ + --arg key .substrate_node_runner.node.image \ + --arg value ${DOCKER_IMAGE_TAG} \ + '{file: $file, key: $key, value: $value}' >> /tmp/changes.json fi - jq -n \ - --arg file ${EFFECT_FILE} \ - --arg key .substrate_node_runner.node.image \ - --arg value ${DOCKER_IMAGE_TAG} \ - '{file: $file, key: $key, value: $value}' >> /tmp/changes.json MULTI_CHANGES=$(jq -crs '.' < /tmp/changes.json)