From 4f4b41b92397863e0ce3feac476900affe105b22 Mon Sep 17 00:00:00 2001 From: Septs Date: Tue, 21 Jul 2020 00:49:25 +0800 Subject: [PATCH] update scripts --- .github/workflows/roa.yml | 2 +- .scripts/push-to-roa.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/roa.yml b/.github/workflows/roa.yml index 8660dc7..3aa5c69 100644 --- a/.github/workflows/roa.yml +++ b/.github/workflows/roa.yml @@ -29,6 +29,6 @@ jobs: run: .scripts/generate-roa.sh - name: Push to NeoCloud/NeoNetwork-ROA + run: .scripts/push-to-roa.sh env: SSHPRIVKEY: ${{ secrets.KEY }} - run: .scripts/push-to-roa.sh diff --git a/.scripts/push-to-roa.sh b/.scripts/push-to-roa.sh index d692470..aa694c5 100755 --- a/.scripts/push-to-roa.sh +++ b/.scripts/push-to-roa.sh @@ -2,7 +2,7 @@ set -euo pipefail IFS=$'\n\t' -if [ -n "$SSHPRIVKEY" ]; then +if [ ! -n "$SSHPRIVKEY" ]; then echo SSHPRIVKEY is not set exit 1 fi