1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-06-08 10:26:36 +00:00

Add auto update for rimgo

This commit is contained in:
sian1468 2024-01-19 17:40:02 +07:00
parent 9790a8975e
commit b986d466d0
No known key found for this signature in database
GPG key ID: 7DBCA5E9B2E932EB
2 changed files with 37 additions and 16 deletions

View file

@ -263,6 +263,22 @@ jobs:
apply_update
# ==============================================================
# Rimgo update
# ==============================================================
curl -s https://rimgo.codeberg.page/api.json | \
jq '[
.clearnet[] |
.url] |
sort' > rimgo-tmp.json
jq --slurpfile rimgo rimgo-tmp.json \
'(.[] | select(.type == "rimgo") )
.instances |= $rimgo[0]' services-full.json > services-tmp.json
apply_update
# ==============================================================
# TODO: Update instances for other services
# ==============================================================