1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-25 13:10:02 +00:00

Add auto update for rimgo (#152)

This commit is contained in:
sian1468 2024-02-05 23:38:42 +07:00 committed by GitHub
parent 42386394f9
commit 40855bb77e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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
# ==============================================================