Currently when you set up a deploy script that skips on certain commits, it still notifies of a successful deploy. If it skipped, it shouldn't notify.
2022-01-05 -
Activity
Newest / Oldest
Dennis
Status changed to:
Live
Dennis
It is impossible for us to properly detect when the script runs exit to skip deployment notifications. So what we did, is add a variable that gives you even more control anyway.
Add the variable {DO_NOT_NOTIFY} to your deploy script inside your if statement, or at the part you want to have it skipped. (Also view image)
What if the deployment fails (even before the if statement, or inside), then it should output the notification I presume right? It's kinda priority to fix it then.
Activity Newest / Oldest
Dennis
Status changed to: Live
Dennis
It is impossible for us to properly detect when the script runs exit to skip deployment notifications. So what we did, is add a variable that gives you even more control anyway.
Add the variable {DO_NOT_NOTIFY} to your deploy script inside your if statement, or at the part you want to have it skipped. (Also view image)
We've also added this to our documentation article: ploi.io/documentation/deployment/how-to-skip-a-deployment-via-commit-message
Dennis
Status changed to: Under review
Dennis
What if the deployment fails (even before the if statement, or inside), then it should output the notification I presume right? It's kinda priority to fix it then.
Dennis
Status changed to: Planned