summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBen Busby <contact@benbusby.com>2023-05-19 10:57:43 -0600
committerBen Busby <contact@benbusby.com>2023-05-19 10:57:43 -0600
commit0ce0832a2855d1bad52898a585e5f416b9dfd9c4 (patch)
treed94296ba88c7a463f74229c8869dab74dc2d83ec /.github
parentdd51523fafba4fd0d63da95d997b1eb64f0ee2f0 (diff)
downloadfarside-0ce0832a2855d1bad52898a585e5f416b9dfd9c4.tar.gz
Add support for BreezeWiki
Includes nightly build support for automatically pulling the most up to date instance list. Closes #104
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-instances.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml
index 0cb2ade..b152420 100644
--- a/.github/workflows/update-instances.yml
+++ b/.github/workflows/update-instances.yml
@@ -206,6 +206,17 @@ jobs:
apply_update
# ==============================================================
+ # BreezeWiki update
+ # ==============================================================
+ curl -s https://docs.breezewiki.com/files/instances.json | \
+ jq '[.[] | .instance]' > bw-tmp.json
+ jq --slurpfile breezewiki breezewiki-tmp.json \
+ '(.[] | select(.type == "breezewiki") )
+ .instances |= $breezewiki[0]' services-full.json > services-tmp.json
+
+ apply_update
+
+ # ==============================================================
# TODO: Update instances for other services
# ==============================================================