I have a Drone pipeline containing steps that I would like to trigger on a pull_request to specific branches, and on promotion to specific environments. The correct steps are triggered when I promote the build to the desired environments. The issue is that the steps are not triggering on a pull request. I’ve checked the Drone docs and am not sure what I’m doing wrong. Any help is appreciated!
Trigger clause for the affected steps (please ignore syntax, edited for this comment):
The intended functionality is to have these steps trigger when promoted to test/testing environments. This is only ever done from source branches matching PM-*, and is working correctly.
What is not working is when a pull request to the development is opened/updated, these steps are not triggered.
Yes I can do that and it works as I intend, but I’m trying to avoid duplicating the steps as there are quite a lot of them and that would mean duplicate code to maintain.
If it is not possible to mix pull request event & target triggers I will just duplicate the steps, but thought I would ask the question as I can’t see anywhere in the Drone docs which explicitly states these triggers can’t be used together.