mirror of
https://github.com/benbusby/farside.git
synced 2025-04-19 06:45:55 -04:00
Add auto update instances for libreddit
This commit is contained in:
parent
07b3e04ff9
commit
4b46aa507b
15
.github/workflows/update-instances.yml
vendored
15
.github/workflows/update-instances.yml
vendored
@ -189,6 +189,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
|
||||
# ==============================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user