From bc5ac21aa38fdedf3599f8bad48178a226e61a86 Mon Sep 17 00:00:00 2001 From: Serhii Marchenko Date: Mon, 11 Dec 2023 13:01:07 +0200 Subject: [PATCH] chore: upd dep script --- .github/workflows/update_dependencies.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_dependencies.yaml b/.github/workflows/update_dependencies.yaml index 691e940da..9fc799c26 100644 --- a/.github/workflows/update_dependencies.yaml +++ b/.github/workflows/update_dependencies.yaml @@ -97,16 +97,14 @@ jobs: # Save script inputs to local variable local inputsJson="${{ toJson(github.event.inputs) }}" + echo ">> inputs $inputsJson" + # Check if the dependency checked in script inputs if [[ $(echo "$inputsJson" | jq -r --arg key "UPDATE-$dependencyName" '.[$key]') == "true" ]]; then - - local latestVersion - local inputName="VERSION-${dependencyName}" - - # Use jq to extract the inputs value - local inputValue=$(echo "$inputsJson" | jq -r --arg inputName "$inputName" '.[$inputName]') + local inputValue=$(echo "$inputsJson" | jq -r --arg key "VERSION-${dependencyName}" '.[$key]') # Check and set version for update + local latestVersion if [[ $inputValue == "null" ]]; then echo "Input value is 'null'. Skipping update for $dependencyName" elif [[ $inputValue == "latest" ]]; then