mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 02:48:42 +00:00
parent
3460986481
commit
3c776d55b0
1 changed files with 17 additions and 1 deletions
18
.github/workflows/update-instances.yml
vendored
18
.github/workflows/update-instances.yml
vendored
|
@ -48,7 +48,7 @@ jobs:
|
||||||
done <$file
|
done <$file
|
||||||
|
|
||||||
# Remove any trailing commas from new instance lists
|
# Remove any trailing commas from new instance lists
|
||||||
sed -i '' -e ':begin' -e '$!N' -e 's/,\n]/\n]/g' -e 'tbegin' -e 'P' -e 'D' out.json
|
sed -e ':begin' -e '$!N' -e 's/,\n]/\n]/g' -e 'tbegin' -e 'P' -e 'D' out.json
|
||||||
|
|
||||||
cat out.json | jq --indent 2 . > services.json
|
cat out.json | jq --indent 2 . > services.json
|
||||||
rm -f out.json
|
rm -f out.json
|
||||||
|
@ -62,6 +62,22 @@ jobs:
|
||||||
git remote set-url origin git@github.com:benbusby/farside.git
|
git remote set-url origin git@github.com:benbusby/farside.git
|
||||||
git checkout main
|
git checkout main
|
||||||
|
|
||||||
|
# ==============================================================
|
||||||
|
# Bibliogram update
|
||||||
|
# ==============================================================
|
||||||
|
curl -s https://bibliogram.art/api/instances | \
|
||||||
|
jq '[
|
||||||
|
.data |
|
||||||
|
.[] |
|
||||||
|
select(.onion_site | not) |
|
||||||
|
.address
|
||||||
|
] | sort' > bibliogram-tmp.json
|
||||||
|
jq --slurpfile bibliogram bibliogram-tmp.json \
|
||||||
|
'( .[] | select(.type == "bibliogram") )
|
||||||
|
.instances |= $bibliogram[0]' services-full.json > services-tmp.json
|
||||||
|
|
||||||
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# searx update
|
# searx update
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue