diff options
| author | Ben Busby <contact@benbusby.com> | 2023-05-16 18:06:42 -0600 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2023-05-16 18:06:42 -0600 |
| commit | 1112a9fe3abb7b0b2ba007fbbdcbd2a0aca7c486 (patch) | |
| tree | 5b4c08ae32f4a4b5fd35c2c095465c88d5a5f169 /.github | |
| parent | 765592b93806ae73d5501de979b4b5017a389a6d (diff) | |
| download | farside-1112a9fe3abb7b0b2ba007fbbdcbd2a0aca7c486.tar.gz | |
Replace SimplyTranslate instance source in nightly build
Closes #101
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-instances.yml | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 88d59da..0cb2ade 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -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 |
