Fix drone commit message passing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b20baf7ec6
commit
0543638553
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue