Browse Source

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)
Ben Busby 3 years ago
parent
commit
fb286398bc
1 changed files with 2 additions and 3 deletions
  1. 2 3
      .github/workflows/update-instances.yml

+ 2 - 3
.github/workflows/update-instances.yml

@@ -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") )