mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 10:58:42 +00:00
Auto update list of invidious instances
Adds Invidious to the auto-update nightly CI build Closes #12
This commit is contained in:
parent
ae5d4a4c03
commit
7cb19579c9
1 changed files with 15 additions and 0 deletions
15
.github/workflows/update-instances.yml
vendored
15
.github/workflows/update-instances.yml
vendored
|
@ -86,6 +86,21 @@ jobs:
|
||||||
|
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
|
# ==============================================================
|
||||||
|
# Invidious update
|
||||||
|
# ==============================================================
|
||||||
|
curl -s https://api.invidious.io/instances.json | \
|
||||||
|
jq '[
|
||||||
|
.[] |
|
||||||
|
select(.[1].type | contains("https")) ] |
|
||||||
|
[.[][1].uri] |
|
||||||
|
sort' > invidious-tmp.json
|
||||||
|
jq --slurpfile invidious invidious-tmp.json \
|
||||||
|
'( .[] | select(.type == "invidious") )
|
||||||
|
.instances |= $invidious[0]' services.json > services-tmp.json
|
||||||
|
|
||||||
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# TODO: Update instances for other services
|
# TODO: Update instances for other services
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue