continuous integration – Optionally run Google Cloud Build pipeline on commit

Currently we use Google Cloud Build to run tests, build and deploy the application. This is only run on merging with develop and live branches, not for commits on feature branches.

I would like to optionally run the CICD pipeline and deploy when committing to a feature branch but would not want to do this every time I commit.

Is this possible? Can I add something to the commit message to access in the trigger like check for the text “–CICD”?

As a workaround I can use the regex matcher on the branch name to check for /CICD$/ and merge into the CICD version of the branch when I want to commit but this doesn’t seem like a good approach and is error prone.