mirror of
https://github.com/benbusby/farside.git
synced 2025-06-30 13:06:37 +00:00
Add auto update instances for libreddit
This commit is contained in:
parent
07b3e04ff9
commit
4b46aa507b
1 changed files with 15 additions and 0 deletions
15
.github/workflows/update-instances.yml
vendored
15
.github/workflows/update-instances.yml
vendored
|
@ -189,6 +189,21 @@ jobs:
|
||||||
|
|
||||||
#apply_update
|
#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
|
# TODO: Update instances for other services
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue