mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +00:00
Small fixes lnproxy relay sync workflow
This commit is contained in:
parent
3bd7ade298
commit
0c5989ca5f
6
.github/workflows/lnproxy-sync.yml
vendored
6
.github/workflows/lnproxy-sync.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Syncs relay list from lnproxy.org and stores in format used by RoboSats
|
||||
name: Sync lnproxy relays
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
- name: Fetch and process JSON
|
||||
run: |
|
||||
curl https://github.com/shyfire131/lnproxy-webui2/blob/17d6131a72a92978e5c0dc57ab2b2fbe467c7722/assets/relays.json -o lnproxy_tmplist.json
|
||||
curl https://raw.githubusercontent.com/shyfire131/lnproxy-webui2/17d6131a72a92978e5c0dc57ab2b2fbe467c7722/assets/relays.json -o lnproxy_tmplist.json
|
||||
node .github/workflows/scripts/lnproxy-sync.js
|
||||
|
||||
- name: Commit and push if it's not up to date
|
||||
@ -23,7 +23,7 @@ jobs:
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add ./frontend/static/lnproxies.json
|
||||
git diff --quiet && git diff --staged --quiet || git commit -m "Updated LNProxy relay list"
|
||||
git diff --quiet && git diff --staged --quiet || git commit -m "Update LNProxy relay list"
|
||||
git push
|
||||
|
||||
- name: Remove tmp lnproxy json file
|
||||
|
Loading…
Reference in New Issue
Block a user