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