From 8b49fc92f04466e631adde75e85bfcdaa9deb9e9 Mon Sep 17 00:00:00 2001 From: mmd-afegbua Date: Tue, 20 Feb 2024 17:16:45 +0100 Subject: [PATCH] test workflow 4 --- .github/workflows/weekly-snapsots.yml | 2 +- scripts/getSFMetadata.sh | 3 ++- scripts/manageSnapshots.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/weekly-snapsots.yml b/.github/workflows/weekly-snapsots.yml index d408d8c2..d16291bd 100644 --- a/.github/workflows/weekly-snapsots.yml +++ b/.github/workflows/weekly-snapsots.yml @@ -35,7 +35,7 @@ jobs: uses: ibnesayeed/setup-ipfs@master id: ipfs_setup - - name: Build Snapshot + - name: Generate networks file run: ./scripts/getSFMetadata.sh - name: Build Snapshot diff --git a/scripts/getSFMetadata.sh b/scripts/getSFMetadata.sh index 235ce389..3a0a4150 100755 --- a/scripts/getSFMetadata.sh +++ b/scripts/getSFMetadata.sh @@ -5,7 +5,8 @@ input_json_url="https://raw.githubusercontent.com/superfluid-finance/protocol-monorepo/dev/packages/metadata/networks.json" # Variables -common_domain="${COMMON_DOMAIN}" +#TODO: Move variable to github secret +common_domain="${COMMON_DOMAIN:-'.rpc.superfluid.dev'}" # Download the input JSON file wget -O input.json "$input_json_url" diff --git a/scripts/manageSnapshots.sh b/scripts/manageSnapshots.sh index 0e7dd7c1..1497d340 100755 --- a/scripts/manageSnapshots.sh +++ b/scripts/manageSnapshots.sh @@ -4,7 +4,7 @@ set -xe #Variables filename="networks" -ipfs_api="${IPFS_API:-"/ip4/65.21.152.182/tcp/5001"}" +ipfs_api="${IPFS_API:-'/ip4/65.21.152.182/tcp/5001'}" generate_snapshot() { echo "Generating new snapshots..."