Do Cloud Actions trigger whenever the customer deploys a new commit on an existing branch?
No, Cloud Actions do not execute when the deployment occurs as a result of a commit update to a branch that is already deployed to a particular environment. The commit triggers an automatic deployment to the environment but that deployment does not trigger Cloud Actions.
Workaround:
After you push a commit to an existing branch, which is already deployed and wait for a brief period, you can execute the following command to redeploy the commit and trigger Cloud Actions:
acli api:environments:code-switch <app>.<env> tags/WELCOME --cloud-actions="[ID1, ID2]"
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.