Skip to content

Commit

Permalink
chore: upd dep script
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura committed Dec 11, 2023
1 parent 39efc7a commit 4cf6b04
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/update_dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cf6b04

Please sign in to comment.