From 7e021be0b821c55fb65b7f7ef9dd8b2397769090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 19 Oct 2023 14:00:54 +0200 Subject: [PATCH] additional prints --- setup-key.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup-key.sh b/setup-key.sh index a3f88d5..7d03c77 100755 --- a/setup-key.sh +++ b/setup-key.sh @@ -25,7 +25,8 @@ if [ -e "${KEYFILE}" ]; then echo "Found existing key in ${KEYFILE}, aborting." echo "Printing private key:" cat "${KEYFILE}" - exit 1 + echo "Add this as 'PAGES_SSH_KEY' to the repository secrets." + exit 0 fi URL="https://git.abstractnonsen.se/${OWNER}/${REPOSITORY}" @@ -52,5 +53,6 @@ echo "command=\"${DEPLOY_SCRIPT} ${OWNER} ${REPOSITORY}\",no-port-forwarding,no- echo "Generate and configured new key in ${KEYFILE}" echo "Printing private key:" cat "${KEYFILE}" +echo "Add this as 'PAGES_SSH_KEY' to the repository secrets." exit 0