Skip to content

Commit

Permalink
Use LibreY instances for LibreX requests
Browse files Browse the repository at this point in the history
LibreX is maybe abandoned and has been replaced by LibreY. Requests to
LibreX are now forwarded to LibreY instances to avoid issues.
  • Loading branch information
benbusby committed Jan 9, 2024
1 parent 30d3da8 commit 28dac7e
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/update-instances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28dac7e

Please sign in to comment.