I am trying to do a deploy when a pull request is merged into the master branch using bitbucket-pipelines however the deploy is not triggered. If I change from pull-requests to branches it does work.
The bitbucket-pipelines.yml look like:
image: 'ruby:2.4.0'
pipelines:
pull-requests:
master:
- step:
name: 'Deploy to production'
deployment: production
caches:
- bundler
script:
- 'bundle install'
definitions:
caches:
bundler: ./vendor
Any help is appreciated.