diff options
| author | Ben Busby <contact@benbusby.com> | 2021-12-15 17:09:00 -0700 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2021-12-15 17:12:59 -0700 |
| commit | 919dd6f602f756792cd7801dc988d3ab0c547748 (patch) | |
| tree | 8e56465bcaaa3d5859bd4cea0243d417033047d7 /.github | |
| parent | c675aa7477875d83de2808a2093ef628d5cf2066 (diff) | |
| download | farside-919dd6f602f756792cd7801dc988d3ab0c547748.tar.gz | |
Support teddit, piped, and simplytranslate
- teddit (https://teddit.net/about)
A free and open source alternative Reddit front-end focused on
privacy. Inspired by the Nitter project.
- Piped (https://github.com/TeamPiped/Piped)
An alternative privacy-friendly YouTube frontend which is efficient
by design.
- SimplyTranslate (https://simple-web.org/projects/simplytranslate.html)
We aim to provide fast and private translations to the user without
wasting much overhead for extensive styling or JavaScript
___
Also adds SimplyTranslate to the github pipeline, since they provide a
list of the service's public instances.
Closes #4
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-instances.yml | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/.github/workflows/update-instances.yml b/.github/workflows/update-instances.yml index 6fe6f77..aefba6f 100644 --- a/.github/workflows/update-instances.yml +++ b/.github/workflows/update-instances.yml @@ -1,7 +1,7 @@ on: schedule: - cron: '0 0 * * *' - + jobs: update-instances: runs-on: ubuntu-latest @@ -25,7 +25,7 @@ jobs: # Ensure no trailing slashes for any instance sed -i 's/\/"/"/g' services.json } - + # ============================================================== # Git config # ============================================================== @@ -33,7 +33,7 @@ jobs: git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com git remote set-url origin git@github.com:benbusby/farside.git git checkout main - + # ============================================================== # Searx update # ============================================================== @@ -52,7 +52,7 @@ jobs: select(.value.html.grade == "V" or .value.html.grade == "F") | .key ] | sort' > searx-tmp.json - + cat searx-tmp.json | jq . jq --slurpfile searx searx-tmp.json \ @@ -60,11 +60,24 @@ jobs: .instances |= $searx[0]' services.json > services-tmp.json apply_update - + + # ============================================================== + # Simply Translate update + # ============================================================== + curl -s https://simple-web.org/instances/simplytranslate | sort > st-out + sed -i -e 's/^/https:\/\//' st-out + jq -ncR '[inputs]' <<< "$(cat st-out)" > st-tmp.json + + jq --slurpfile simplytranslate st-tmp.json \ + '( .[] | select(.type == "simplytranslate") ) + .instances |= $simplytranslate[0]' services.json > services-tmp.json + + apply_update + # ============================================================== # TODO: Update instances for other services # ============================================================== - + # ============================================================== # Push changes # ============================================================== |
