From 9104650cfecfb7f6aea42fc755b565f19c79d370 Mon Sep 17 00:00:00 2001 From: NoPlagiarism <37241775+NoPlagiarism@users.noreply.github.com> Date: Tue, 18 Jul 2023 02:15:51 +0500 Subject: Add GotHub support (#116) Adds support for GotHub, an alternative frontend for GitHub --------- Co-authored-by: Ben Busby --- .github/workflows/update-instances.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.github') diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 2c043ab..829583b 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -216,6 +216,18 @@ jobs: apply_update + # ============================================================== + # GotHub update + # ============================================================== + + curl -s https://codeberg.org/gothub/gothub-instances/raw/branch/master/instances.json | \ + jq '[.[] | .link]' > gothub-tmp.json + jq --slurpfile gothub-tmp.json \ + '(.[] | select(.type == "gothub") ) + .instances |= $gothub[0]' services-full.json > services-tmp.json + + apply_update + # ============================================================== # TODO: Update instances for other services # ============================================================== -- cgit v1.2.3