From 0b0dfa9f445206e7bf3bb573f534e15c56036d4d Mon Sep 17 00:00:00 2001 From: mat ess Date: Fri, 21 Oct 2022 00:51:58 -0400 Subject: [PATCH] Add debug option --- script.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script.sh b/script.sh index 99a3258..0dc2c55 100755 --- a/script.sh +++ b/script.sh @@ -35,6 +35,12 @@ then NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --alias ${DRONE_COMMIT_SHA}" fi +if [ -n "$PLUGIN_DEBUG" ] && [ "$PLUGIN_DEBUG" != false ] +then + cat netlify.toml + NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --debug" +fi + if [ -n "$PLUGIN_SITE" ] then NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE"