summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2024-01-09 09:28:30 -0700
committerBen Busby <contact@benbusby.com>2024-01-09 09:28:30 -0700
commit28dac7e7407d0baef653ecf1d2f28fe0bc2f08ca (patch)
tree067a008d621a4c950f03bb05687f6454c8cd15c6 /.github
parent30d3da85932d5616b19c2cdadb1ff45e0292d405 (diff)
downloadfarside-28dac7e7407d0baef653ecf1d2f28fe0bc2f08ca.tar.gz
Use LibreY instances for LibreX requests
LibreX is maybe abandoned and has been replaced by LibreY. Requests to LibreX are now forwarded to LibreY instances to avoid issues.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-instances.yml20
1 files changed, 5 insertions, 15 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index 0ee818c..608942a 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -242,31 +242,21 @@ jobs:
apply_update
# ==============================================================
- # librex update
+ # LibreX/LibreY 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 \
+ sort' > librey-tmp.json
+
+ jq --slurpfile librex librey-tmp.json \
'( .[] | select(.type == "librex") )
.instances |= $librex[0]' services-full.json > services-tmp.json
- apply_update
+ mv services-tmp.json services-full.json
- # ==============================================================
- # librey update
- # ==============================================================
- curl -s https://raw.githubusercontent.com/Ahwxorg/LibreY/main/instances.json | \
- jq '[
- .instances |
- .[] |
- select(.librey == true) |
- .clearnet] |
- sort' > librey-tmp.json
jq --slurpfile librey librey-tmp.json \
'( .[] | select(.type == "librey") )
.instances |= $librey[0]' services-full.json > services-tmp.json