compile jq
Some checks failed
compile jq / compile-jq (push) Failing after 2m12s

мда
This commit is contained in:
catmpeg 2026-02-19 18:29:10 +03:00
commit 54ad2850ab

View file

@ -28,16 +28,16 @@ jobs:
- name: run jq - name: run jq
run: | run: |
echo '[ echo '[
{"first": "first ok"}, {"first": "first ok"},
{"second": "second ok"}, {"second": "second ok"},
{"third": "third ok"}, {"third": "third ok"},
{"fourth": "fourth ok"}, {"fourth": "fourth ok"},
{"fifth": "fifth ok"} {"fifth": "fifth ok"}
]' > test.json ]' > test.json
echo "all" echo "all"
jq '.[].first // .[].second // .[].third // .[].fourth // .[].fifth' test.json jq '.[].first // .[].second // .[].third // .[].fourth // .[].fifth' test.json
echo "only object third" echo "only object third"
jq '.[] | select(has("third"))' test.json jq '.[] | select(has("third"))' test.json
echo "only fourth" echo "only fourth"
jq '.[3].fourth' test.json jq '.[3].fourth' test.json