I want to launch task on: pull_request AND push on specific branch.
I try:
when:
event: [tag, pull_request, push]
branch: [master, develop, staging]
If I activate Repository Hooks on pull request and push, when I create pull request Drone launch two job(with one never start, stay in grey)…
Reproduce bug with:
- Use this “when” config
- Submit pull request
=> See two job (on push an other on pr) the first job in push hold on pending status
My target is (only one build once):
- Build on pr
- Build on push specific branch(aka master, develop, staging)