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