From 5d2339bfcfb7db4e0592d3d25ce4002e5622761a Mon Sep 17 00:00:00 2001 From: +shyfire131 <116033104+shyfire131@users.noreply.github.com> Date: Mon, 22 May 2023 03:41:40 -0600 Subject: [PATCH] Additional updates to LnProxy support (#609) * Fetch relay list from official lnproxy repo My changes have been merged on the lnproxy.org repo, so RoboSats must not fetch from my fork of lnproxy anymore. * Grant workflow job write perms By default, the GITHUB_TOKEN only has read permissions. Write is required in order to update the list of relays. * Update to latest version of checkout action --------- Co-authored-by: +shyfire131 --- .github/workflows/lnproxy-sync.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lnproxy-sync.yml b/.github/workflows/lnproxy-sync.yml index e40e6f74..2f851664 100644 --- a/.github/workflows/lnproxy-sync.yml +++ b/.github/workflows/lnproxy-sync.yml @@ -3,19 +3,22 @@ name: Sync lnproxy relays on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '0 12 * * 0' # Run every Sunday at noon + - cron: "0 12 * * 0" # Run every Sunday at noon jobs: sync: runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fetch and process JSON run: | - curl https://raw.githubusercontent.com/shyfire131/lnproxy-webui2/17d6131a72a92978e5c0dc57ab2b2fbe467c7722/assets/relays.json -o lnproxy_tmplist.json + curl https://raw.githubusercontent.com/lnproxy/lnproxy-webui2/main/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 @@ -27,4 +30,4 @@ jobs: git push - name: Remove tmp lnproxy json file - run: rm lnproxy_tmplist.json \ No newline at end of file + run: rm lnproxy_tmplist.json