Fix drone commit message passing
continuous-integration/drone/push Build is passing Details

main
mat ess 2022-10-20 20:19:26 -04:00
parent b20baf7ec6
commit 0543638553
1 changed files with 1 additions and 3 deletions

View File

@ -35,13 +35,11 @@ then
NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --alias ${DRONE_COMMIT_SHA}" NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --alias ${DRONE_COMMIT_SHA}"
fi fi
NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --message '$DRONE_COMMIT_MESSAGE'"
if [ -n "$PLUGIN_SITE" ] if [ -n "$PLUGIN_SITE" ]
then then
NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE" NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE"
echo "> Deploying on Netlify…" && echo "> Deploying on Netlify…" &&
netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS; netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE";
else else
echo "> Error! site (site ID or name) and token are required" echo "> Error! site (site ID or name) and token are required"
exit 1 exit 1