summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorsian1468 <58017832+sian1468@users.noreply.github.com>2024-02-05 23:38:42 +0700
committerGitHub <noreply@github.com>2024-02-05 09:38:42 -0700
commit40855bb77efd2f86925c9ac89e2a705439df3b46 (patch)
tree361cd23484e9bd93a569cf4b34158b605d81fd11 /.github
parent42386394f966abedf40e4d70c966f7b1e72dfd45 (diff)
downloadfarside-40855bb77efd2f86925c9ac89e2a705439df3b46.tar.gz
Add auto update for rimgo (#152)
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 608942a..a047b2a 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -264,6 +264,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
# ==============================================================