summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorsian1468 <58017832+sian1468@users.noreply.github.com>2023-09-14 02:53:05 +0700
committerGitHub <noreply@github.com>2023-09-13 13:53:05 -0600
commit4a655c75803b0c53406d130773c4c4ef7d19d42a (patch)
treeb08f33305084a60ded52d93121d6641dca60cc27 /.github
parentfc4d7d5136539197f4fc165392339c89e94049eb (diff)
downloadfarside-4a655c75803b0c53406d130773c4c4ef7d19d42a.tar.gz
Add librey support (#133)
Co-authored-by: Ben Busby <contact@benbusby.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-instances.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index 5f5a98a..3590c1c 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -262,6 +262,22 @@ jobs:
apply_update
# ==============================================================
+ # 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
+
+ apply_update
+
+ # ==============================================================
# TODO: Update instances for other services
# ==============================================================