Fetch the weekly relay update from the file the app reads

fetch-georelays.yml downloads the relay list from the georelays repo
every week and pushes it straight to main. This branch moves the app's
fetch to online_relays_gps.csv, and a job still reading the old source
would keep the bundled asset on a different list from the one the app
downloads.

Pointed at online_relays_gps.csv, the job keeps the bundled asset on
the app's source. When the file has not changed, the job downloads the
same file and pushes nothing; when it changes, the asset follows. The
asset itself is not changed in this branch.
This commit is contained in:
heyaim 2026-09-07 19:01:10 -05:00
parent 54a0b4dd45
commit 369b047fc4

View File

@ -19,9 +19,11 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch GeoRelays
# Must match RelayDirectory.ASSET_FILE_URL, the file the app fetches at
# runtime; the bundled asset is a snapshot of the same file.
run: |
wget https://raw.githubusercontent.com/permissionlesstech/georelays/refs/heads/main/nostr_relays.csv
mv nostr_relays.csv ./app/src/main/assets/nostr_relays.csv
wget https://raw.githubusercontent.com/permissionlesstech/bitchat/refs/heads/main/relays/online_relays_gps.csv
mv online_relays_gps.csv ./app/src/main/assets/nostr_relays.csv
- name: Check for changes
id: git-check