I am self hosting a drone server. I have a monorepo that includes multiple clients. I want to execute certain pipelines if a string exists in my head’s commit message. like so:
git commit -m "add fix for feature A - [ client-a-uat ]"
I was hoping I can use something like:
when:
event: push
branch: pre-release
message: " *[ client-a-uat ]* "
but the only thing I found working was adding it in my commands and checking the $DRONE_COMMIT_MESSAGE variable and failing it depending on the string.
Is there a cleaner or better way of doing this?
Thanks