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"