From 0543638553b7fa7b6b5a40c84f31870e8772068e Mon Sep 17 00:00:00 2001 From: mat ess Date: Thu, 20 Oct 2022 20:19:26 -0400 Subject: [PATCH] Fix drone commit message passing --- script.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script.sh b/script.sh index 7ebe4bd..70144da 100755 --- a/script.sh +++ b/script.sh @@ -35,13 +35,11 @@ then NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --alias ${DRONE_COMMIT_SHA}" fi -NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --message '$DRONE_COMMIT_MESSAGE'" - if [ -n "$PLUGIN_SITE" ] then NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE" echo "> Deploying on Netlify…" && - netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS; + netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE"; else echo "> Error! site (site ID or name) and token are required" exit 1