Skip to content

Commit

Permalink
Update service_test2.yml
Browse files Browse the repository at this point in the history
Signed-off-by: bm8 bmFtZQ <[email protected]>
  • Loading branch information
tainguyenbp authored May 23, 2024
1 parent 8d042c8 commit c141990
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/service_test2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ jobs:
INPUT_DESC=$(echo "$INPUT_JSON" | jq -r 'keys_unsorted[]')
for ITEM in $INPUT_DESC; do
echo "ITEM is : ${ITEM}"
# Extract description and value
GET_WORKFLOW_NAME="github.event.inputs.${ITEM}"
value=$(echo "${{ fromJSON(toJson($GET_WORKFLOW_NAME)) }}")
echo "The value of service_test1 is: $value"
# Check if the description corresponds to a workflow in the list and its value is true
if [[ "$WORKFLOW_NAME" == "true" ]]; then
echo "Triggering workflow run for $WORKFLOW_NAME..."
Expand Down

0 comments on commit c141990

Please sign in to comment.