summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2024-01-08 11:32:59 -0700
committerBen Busby <contact@benbusby.com>2024-01-08 11:32:59 -0700
commit4f60a39d7f6aded5a7ccd5f003f77ed634415a90 (patch)
tree07a5bc563ff2505255f7ae5f37e768067e03137e /.github
parent0830ee5a3dbd968f5f7d364e7851c412b85a4aef (diff)
downloadfarside-4f60a39d7f6aded5a7ccd5f003f77ed634415a90.tar.gz
Replace libreddit w/ redlib, remove teddit
Teddit is no longer maintained Libreddit has been forked to redlib, which seems to be actively trying to work around the changes to Reddit's API. Libreddit instances are now a mirror of redlib instances for the time being.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-instances.yml32
1 files changed, 20 insertions, 12 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index 3eb126f..f8e6080 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -161,18 +161,19 @@ jobs:
# ==============================================================
# teddit update
+ # Note: no longer maintained
# ==============================================================
- curl -s https://codeberg.org/teddit/teddit/raw/branch/main/instances.json | \
- jq '[
- .[] |
- select(.url | contains("https")) |
- .url ] |
- sort' > teddit-tmp.json
- jq --slurpfile teddit teddit-tmp.json \
- '( .[] | select(.type == "teddit") )
- .instances |= $teddit[0]' services-full.json > services-tmp.json
+ #curl -s https://codeberg.org/teddit/teddit/raw/branch/main/instances.json | \
+ #jq '[
+ #.[] |
+ #select(.url | contains("https")) |
+ #.url ] |
+ #sort' > teddit-tmp.json
+ #jq --slurpfile teddit teddit-tmp.json \
+ #'( .[] | select(.type == "teddit") )
+ #.instances |= $teddit[0]' services-full.json > services-tmp.json
- apply_update
+ #apply_update
# ==============================================================
# Wikiless update
@@ -191,18 +192,25 @@ jobs:
#apply_update
# ==============================================================
- # libreddit update
+ # libreddit + redlib update
# ==============================================================
- curl -s https://raw.githubusercontent.com/libreddit/libreddit-instances/master/instances.json | \
+ curl -s https://raw.githubusercontent.com/redlib-org/redlib-instances/main/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
+ mv services-tmp.json services-full.json
+
+ jq --slurpfile redlib libreddit-tmp.json \
+ '( .[] | select(.type == "redlib") )
+ .instances |= $redlib[0]' services-full.json > services-tmp.json
+
apply_update
# ==============================================================