mirror of
https://github.com/benbusby/farside.git
synced 2025-04-25 13:10:02 +00:00
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:
parent
3654fee2b3
commit
fb286398bc
1 changed files with 2 additions and 3 deletions
5
.github/workflows/update-instances.yml
vendored
5
.github/workflows/update-instances.yml
vendored
|
@ -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") )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue