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}"
|
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
|
||||||
|
|
Loading…
Reference in New Issue