From eef3f81a857c07fc14291921e6ed95ac57e3e198 Mon Sep 17 00:00:00 2001 From: Francois Date: Wed, 27 Dec 2023 08:52:51 +0100 Subject: [PATCH] Fix validate coins GitHub Action The validate coins action was failing silently because of the coins_ci.json file location changing to the assets folder --- .github/workflows/validate_coins.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate_coins.yml b/.github/workflows/validate_coins.yml index c51d9229..2d7a6764 100644 --- a/.github/workflows/validate_coins.yml +++ b/.github/workflows/validate_coins.yml @@ -31,7 +31,12 @@ jobs: - name: Get coins repo commit id: coins run: | - echo "hash=$(jq -r .coins_repo_commit coins_ci.json)" >> $GITHUB_ENV + export commit_hash="$(jq -r .bundled_coins_repo_commit assets/coins_ci.json)" + if [ -z "${commit_hash}" ]; then + echo "No coins repo commit found in coins_ci.json" + exit 1 + fi + echo "hash=${commit_hash}" >> $GITHUB_ENV shell: bash - name: Get coins asset files