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 librex (#132)

This commit is contained in:
sian1468 2023-09-14 02:45:52 +07:00 committed by GitHub
parent b549e4bb71
commit fc4d7d5136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 2 deletions

View file

@ -245,6 +245,22 @@ jobs:
apply_update
# ==============================================================
# librex update
# ==============================================================
curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
jq '[
.instances |
.[] |
select(.librey|not) |
.clearnet] |
sort' > librex-tmp.json
jq --slurpfile librex librex-tmp.json \
'( .[] | select(.type == "librex") )
.instances |= $librex[0]' services-full.json > services-tmp.json
apply_update
# ==============================================================
# TODO: Update instances for other services
# ==============================================================