From fc4d7d5136539197f4fc165392339c89e94049eb Mon Sep 17 00:00:00 2001 From: sian1468 <58017832+sian1468@users.noreply.github.com> Date: Thu, 14 Sep 2023 02:45:52 +0700 Subject: Add auto update for librex (#132) --- .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 c806292..5f5a98a 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -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 # ============================================================== -- cgit v1.2.3