From 4a655c75803b0c53406d130773c4c4ef7d19d42a Mon Sep 17 00:00:00 2001 From: sian1468 <58017832+sian1468@users.noreply.github.com> Date: Thu, 14 Sep 2023 02:53:05 +0700 Subject: Add librey support (#133) Co-authored-by: Ben Busby --- .github/workflows/update-instances.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.github/workflows') 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 @@ -261,6 +261,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 # ============================================================== -- cgit v1.2.3