summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-instances.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index e8fc9c7..59341e1 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -190,6 +190,21 @@ jobs:
#apply_update
# ==============================================================
+ # libreddit update
+ # ==============================================================
+ curl -s https://raw.githubusercontent.com/libreddit/libreddit-instances/master/instances.json | \
+ jq '[
+ .instances[] |
+ select(.url) |
+ .url ] |
+ sort' > libreddit-tmp.json
+ jq --slurpfile libreddit libreddit-tmp.json \
+ '( .[] | select(.type == "libreddit") )
+ .instances |= $libreddit[0]' services-full.json > services-tmp.json
+
+ apply_update
+
+ # ==============================================================
# TODO: Update instances for other services
# ==============================================================