diff --git a/.github/workflows/service_test2.yml b/.github/workflows/service_test2.yml index 1231799..8d166eb 100644 --- a/.github/workflows/service_test2.yml +++ b/.github/workflows/service_test2.yml @@ -41,7 +41,7 @@ jobs: echo "ITEM is : ${ITEM}" # Extract description and value GET_WORKFLOW_NAME="github.event.inputs.${ITEM}" - value=$(echo "${{ fromJSON(toJson($GET_WORKFLOW_NAME)) }}") + value=$(echo "${{ toJson(github.event) }}" | jq -r ".$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