# Pipeline triggers when it shouldn't

**URL:** <https://drone.discourse.group/t/pipeline-triggers-when-it-shouldnt/13392>\
**Category:** Drone Support\
**Created:** [February 14, 2023, 3:33pm UTC](https://drone.discourse.group/t/pipeline-triggers-when-it-shouldnt/13392 "2023-02-14T15:33:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesha](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@lesha](https://drone.discourse.group/u/lesha)\
**Post date:** [February 14, 2023, 3:33pm UTC](https://drone.discourse.group/t/pipeline-triggers-when-it-shouldnt/13392/1 "2023-02-14T15:33:33Z")

</div>

Here’s my drone.yaml, I want pipeline to run on pushes to master

```auto
kind: pipeline
type: docker
name: default

steps:
  - name: build
    image: docker:dind
    volumes:
      - name: dockersock
        path: /var/run
    commands:
      - echo hello

trigger:
  branch:
    - master
  event:
    - push

```

However it runs both when i create a PR for this branch and then merge it (thus pushing to master), resulting in two pipeline runs instead of one. What’s wrong with my config?
