From 39a1610b3d9851faa7d9434ff9a4203b5cf2ed20 Mon Sep 17 00:00:00 2001 From: Serhii Marchenko Date: Mon, 11 Dec 2023 13:04:55 +0200 Subject: [PATCH] chore: upd dep script --- .github/workflows/update_dependencies.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_dependencies.yaml b/.github/workflows/update_dependencies.yaml index 9fc799c26..095e86b36 100644 --- a/.github/workflows/update_dependencies.yaml +++ b/.github/workflows/update_dependencies.yaml @@ -72,7 +72,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '14.x' + node-version: '16.x' - name: Check updates Kaltura dependencies (branch - ${{ github.ref_name }}) run: | @@ -98,9 +98,11 @@ jobs: local inputsJson="${{ toJson(github.event.inputs) }}" echo ">> inputs $inputsJson" + echo ">> checked $(echo "$inputsJson" | jq -r --arg key "UPDATE-${dependencyName}" '.[$key]')" + echo ">> version $(echo "$inputsJson" | jq -r --arg key "VERSION-${dependencyName}" '.[$key]')" # Check if the dependency checked in script inputs - if [[ $(echo "$inputsJson" | jq -r --arg key "UPDATE-$dependencyName" '.[$key]') == "true" ]]; then + if [[ $(echo "$inputsJson" | jq -r --arg key "UPDATE-${dependencyName}" '.[$key]') == "true" ]]; then local inputValue=$(echo "$inputsJson" | jq -r --arg key "VERSION-${dependencyName}" '.[$key]') # Check and set version for update