mirror of
https://github.com/benbusby/farside.git
synced 2025-04-20 10:58:42 +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 | \
|
curl -s https://codeberg.org/orenom/Wikiless/raw/branch/main/instances.json | \
|
||||||
jq '[
|
jq '[
|
||||||
.[] |
|
.[] |
|
||||||
"https://" +
|
select((.url | contains(".onion") | not) and (.url | contains("https"))).url ] |
|
||||||
select(. | contains(".onion") | not)] |
|
|
||||||
sort' > wikiless-tmp.json
|
sort' > wikiless-tmp.json
|
||||||
jq --slurpfile wikiless wikiless-tmp.json \
|
jq --slurpfile wikiless wikiless-tmp.json \
|
||||||
'( .[] | select(.type == "wikiless") )
|
'( .[] | select(.type == "wikiless") )
|
||||||
|
|
Loading…
Add table
Reference in a new issue