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