diff options
| author | Ben Busby <contact@benbusby.com> | 2022-06-21 14:04:59 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-21 14:04:59 -0600 |
| commit | fb286398bcd9b4ee4b845f7fbfbeb971550dd89e (patch) | |
| tree | abbfdbf0094a56415368a8c88de3d30498fc5264 /.github | |
| parent | 3654fee2b36a2e770a056bd36f9884cba4a453de (diff) | |
| download | farside-fb286398bcd9b4ee4b845f7fbfbeb971550dd89e.tar.gz | |
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)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-instances.yml | 5 |
1 files 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") ) |
