From 369b047fc45aadccc8b3384ee52ef4986a52c12a Mon Sep 17 00:00:00 2001 From: heyaim <223061694+heyaim@users.noreply.github.com> Date: Mon, 7 Sep 2026 19:01:10 -0500 Subject: [PATCH] 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. --- .github/workflows/fetch-georelays.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetch-georelays.yml b/.github/workflows/fetch-georelays.yml index 8f91c53d..f2300bd0 100644 --- a/.github/workflows/fetch-georelays.yml +++ b/.github/workflows/fetch-georelays.yml @@ -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