From fb286398bcd9b4ee4b845f7fbfbeb971550dd89e Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Tue, 21 Jun 2022 14:04:59 -0600 Subject: [PATCH] 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) --- .github/workflows/update-instances.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index e3f17ba..4a60667 100644 --- a/.github/workflows/update-instances.yml +++ b/.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") )