mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 10:58:42 +00:00
Print instances found in workflow to log
This commit is contained in:
parent
d172c5d467
commit
17f83649c1
1 changed files with 3 additions and 0 deletions
3
.github/workflows/update-instances.yml
vendored
3
.github/workflows/update-instances.yml
vendored
|
@ -31,6 +31,7 @@ jobs:
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# Searx update
|
# Searx update
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
echo "Fetching searx instances..."
|
||||||
curl -s https://searx.space/data/instances.json | \
|
curl -s https://searx.space/data/instances.json | \
|
||||||
jq '[
|
jq '[
|
||||||
.instances |
|
.instances |
|
||||||
|
@ -46,6 +47,8 @@ jobs:
|
||||||
.key
|
.key
|
||||||
] | sort' > searx-tmp.json
|
] | sort' > searx-tmp.json
|
||||||
|
|
||||||
|
cat searx-tmp.json | jq .
|
||||||
|
|
||||||
jq --slurpfile searx searx-tmp.json \
|
jq --slurpfile searx searx-tmp.json \
|
||||||
'( .[] | select(.type == "searx") )
|
'( .[] | select(.type == "searx") )
|
||||||
.instances |= $searx[0]' services.json > services-tmp.json
|
.instances |= $searx[0]' services.json > services-tmp.json
|
||||||
|
|
Loading…
Add table
Reference in a new issue