diff options
| author | Ben Busby <contact@benbusby.com> | 2022-02-24 17:27:34 -0700 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2022-02-24 17:27:34 -0700 |
| commit | 21646f8f29117735712179b338d566b8c73f30d8 (patch) | |
| tree | de1a003038b22533a6525c2b4bc56b30f0a3d25b /.github | |
| parent | ee2996e2587ca4b6b2d57ea57ad85c863f8e0460 (diff) | |
| download | farside-21646f8f29117735712179b338d566b8c73f30d8.tar.gz | |
Add support for Wikiless instances
"A free open source alternative Wikipedia front-end focused on privacy"
- https://codeberg.org/orenom/Wikiless
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-instances.yml | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 8f8a0ce..2a02eae 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -85,20 +85,20 @@ 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] | + .[] | + 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 # ============================================================== @@ -108,7 +108,7 @@ jobs: jq --slurpfile scribe scribe-tmp.json \ '( .[] | select(.type == "scribe") ) .instances |= $scribe[0]' services.json > services-tmp.json - + apply_update # ============================================================== @@ -123,7 +123,22 @@ jobs: jq --slurpfile teddit teddit-tmp.json \ '( .[] | select(.type == "teddit") ) .instances |= $teddit[0]' services.json > services-tmp.json - + + apply_update + + # ============================================================== + # Wikiless update + # ============================================================== + curl -s https://codeberg.org/orenom/Wikiless/raw/branch/main/instances.json | \ + jq '[ + .[] | + "https://" + + select(. | contains(".onion") | not)] | + sort' > wikiless-tmp.json + jq --slurpfile wikiless wikiless-tmp.json \ + '( .[] | select(.type == "wikiless") ) + .instances |= $wikiless[0]' services.json > services-tmp.json + apply_update # ============================================================== |
