mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 20:36:46 +00:00
Update jq command to extract the first tag from the JSON array
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
e00f61ebff
commit
bce021de3a
@ -92,7 +92,7 @@ runs:
|
||||
# extracted_element="${my_array[$index_to_extract]}"
|
||||
|
||||
# echo "Extracted element: $extracted_element"
|
||||
jsonOutput=$(echo "$json" | jq -r '.tags | .[]')
|
||||
jsonOutput=$(echo "$json" | jq -r '.tags | .[0]')
|
||||
echo "jsonOutput: $jsonOutput"
|
||||
echo "jsonOutput: ${jsonOutput[0]}"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user