From 40855bb77efd2f86925c9ac89e2a705439df3b46 Mon Sep 17 00:00:00 2001 From: sian1468 <58017832+sian1468@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:38:42 +0700 Subject: Add auto update for rimgo (#152) --- .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 608942a..a047b2a 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -263,6 +263,22 @@ jobs: apply_update + # ============================================================== + # Rimgo update + # ============================================================== + + curl -s https://rimgo.codeberg.page/api.json | \ + jq '[ + .clearnet[] | + .url] | + sort' > rimgo-tmp.json + + jq --slurpfile rimgo rimgo-tmp.json \ + '(.[] | select(.type == "rimgo") ) + .instances |= $rimgo[0]' services-full.json > services-tmp.json + + apply_update + # ============================================================== # TODO: Update instances for other services # ============================================================== -- cgit v1.2.3