Small fixes lnproxy relay sync workflow

This commit is contained in:
Reckless_Satoshi 2023-05-18 04:25:12 -07:00
parent 3bd7ade298
commit 0c5989ca5f
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -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