1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-25 13:10:02 +00:00

Replace SimplyTranslate instance source in nightly build

Closes #101
This commit is contained in:
Ben Busby 2023-05-16 18:06:42 -06:00
parent 765592b938
commit 1112a9fe3a
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1

View file

@ -112,18 +112,15 @@ jobs:
# ==============================================================
# SimplyTranslate update
# ==============================================================
# TODO: simple-web.org seems to have been down for >1 week (13 Apr 2023)
# This needs to be reevaluated later to see if this is a permanent
# issue.
#curl -s https://simple-web.org/instances/simplytranslate > st-out
#sed -i -e 's/^/https:\/\//' st-out
#jq -ncR '[inputs]' <<< "$(cat st-out | sort)" > st-tmp.json
curl -s https://codeberg.org/SimpleWeb/Website/raw/branch/master/config.json | jq -r '.projects | map(select(.id == "simplytranslate"))[0].instances | .[]' > st-out
sed -i -e 's/^/https:\/\//' st-out
jq -ncR '[inputs]' <<< "$(cat st-out | sort)" > st-tmp.json
#jq --slurpfile simplytranslate st-tmp.json \
#'( .[] | select(.type == "simplytranslate") )
#.instances |= $simplytranslate[0]' services-full.json > services-tmp.json
jq --slurpfile simplytranslate st-tmp.json \
'( .[] | select(.type == "simplytranslate") )
.instances |= $simplytranslate[0]' services-full.json > services-tmp.json
#apply_update
apply_update
# ==============================================================
# Whoogle update