diff options
| -rw-r--r-- | .github/workflows/update-instances.yml | 17 | ||||
| -rw-r--r-- | lib/farside/instances.ex | 4 |
2 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 5cda693..ed1df77 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -110,6 +110,23 @@ jobs: apply_update # ============================================================== + # Nitter update + # ============================================================== + curl -s https://status.d420.de/api/v1/instances | \ + jq '[ + .hosts | + to_entries[] | + select(.value.healthy == true) | + .value.url ] | + sort' > nitter-tmp.json + + jq --slurpfile nitter nitter-tmp.json \ + '( .[] | select(.type == "nitter") ) + .instances |= $nitter[0]' services-full.json > services.tmp.json + + apply_update + + # ============================================================== # SimplyTranslate update # ============================================================== curl -s https://codeberg.org/SimpleWeb/Website/raw/branch/master/config.json | jq -r '.projects | map(select(.id == "simplytranslate"))[0].instances | .[]' > st-out diff --git a/lib/farside/instances.ex b/lib/farside/instances.ex index d02a082..d0d26f6 100644 --- a/lib/farside/instances.ex +++ b/lib/farside/instances.ex @@ -7,9 +7,9 @@ defmodule Farside.Instances do @debug_header "======== " @debug_spacer " " - # SearXNG instance uptimes are inspected as part of the nightly Farside build, + # These instance uptimes are inspected as part of the nightly Farside build, # and should not be included in the constant periodic update. - @skip_service_updates ["searxng"] + @skip_service_updates ["searxng", "nitter"] def sync() do File.rename(@update_file, "#{@update_file}-prev") |
