diff options
| author | Ben Busby <contact@benbusby.com> | 2022-01-26 16:11:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-26 16:11:46 -0700 |
| commit | 7cb19579c940b9fa437b58d49d32f36e1ba1ca60 (patch) | |
| tree | 1e3d19d96dca85c9daa985cb115da3bca2edc71e /.github | |
| parent | ae5d4a4c0361299345e20960f5df13b6bdbe9be1 (diff) | |
| download | farside-7cb19579c940b9fa437b58d49d32f36e1ba1ca60.tar.gz | |
Auto update list of invidious instances
Adds Invidious to the auto-update nightly CI build
Closes #12
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-instances.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 293e393..64ac7c4 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -85,6 +85,21 @@ jobs: .instances |= $whoogle[0]' services.json > services-tmp.json 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 |
