Fix Wikiless auto update workflow

Wikiless updated their instance json with a couple of changes that broke
Farside's auto update workflow:
- The protocol for each instance is now included by default (no need to prepend
  "https://")
- The instances are differentiated between regular, onion, and i2p (no need to
  check for ".onion" in regular instance URLs)
This commit is contained in:
Ben Busby 2022-06-21 14:04:59 -06:00 committed by GitHub
parent 3654fee2b3
commit fb286398bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,9 +158,8 @@ jobs:
# ==============================================================
curl -s https://codeberg.org/orenom/Wikiless/raw/branch/main/instances.json | \
jq '[
.[] |
"https://" +
select(. | contains(".onion") | not)] |
.[] |
select((.url | contains(".onion") | not) and (.url | contains("https"))).url ] |
sort' > wikiless-tmp.json
jq --slurpfile wikiless wikiless-tmp.json \
'( .[] | select(.type == "wikiless") )