From 4cf6b04769ef628d5b99b5d089767ddf11eed692 Mon Sep 17 00:00:00 2001 From: Serhii Marchenko Date: Mon, 11 Dec 2023 13:18:50 +0200 Subject: [PATCH] chore: upd dep script --- .github/workflows/update_dependencies.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_dependencies.yaml b/.github/workflows/update_dependencies.yaml index ba483bc44..17871b2f7 100644 --- a/.github/workflows/update_dependencies.yaml +++ b/.github/workflows/update_dependencies.yaml @@ -97,9 +97,13 @@ jobs: # Save script inputs to local variable local inputsJson="${{ toJson(github.event.inputs) }}" - echo ">> inputs $inputsJson" - echo ">> checked $(echo "$inputsJson" | jq -r --arg key "UPDATE-$dependencyName" --arg depName "$dependencyName" '.[$depName]')" - echo ">> version $(echo "$inputsJson" | jq -r --arg key "VERSION-$dependencyName" --arg depName "$dependencyName" '.[$depName]')" + local dependencyKey="UPDATE-$dependencyName" + local versionKey="VERSION-$dependencyName" + + echo ">> dependencyKey $dependencyKey" + echo ">> versionKey $versionKey" + echo ">> checked $(echo "$inputsJson" | jq -r --arg key "$dependencyKey" '.[$key]')" + echo ">> version $(echo "$inputsJson" | jq -r --arg key "$versionKey" '.[$key]')" # Check if the dependency checked in script inputs if [[ $(echo "$inputsJson" | jq -r --arg key "UPDATE-${dependencyName}" '.[$key]') == "true" ]]; then