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
run: |
echo '[
{"first": "first ok"},
{"second": "second ok"},
{"third": "third ok"},
{"fourth": "fourth ok"},
{"fifth": "fifth ok"}
]' > test.json
echo "all"
jq '.[].first // .[].second // .[].third // .[].fourth // .[].fifth' test.json
echo "only object third"
jq '.[] | select(has("third"))' test.json
echo "only fourth"
jq '.[3].fourth' test.json
echo '[
{"first": "first ok"},
{"second": "second ok"},
{"third": "third ok"},
{"fourth": "fourth ok"},
{"fifth": "fifth ok"}
]' > test.json
echo "all"
jq '.[].first // .[].second // .[].third // .[].fourth // .[].fifth' test.json
echo "only object third"
jq '.[] | select(has("third"))' test.json
echo "only fourth"
jq '.[3].fourth' test.json