Issues with drone triggers

Hey there!

I want to run gradle test every time a pull request gets opened or synchronized (I am using Gitea v1.17). But the task does not trigger when opening or synchronizing a pull request. My .drone.yml looks like this:

kind: pipeline
type: docker
name: test
  event: pull_request
  - opened
  - synchronized
  - name: clean test
    image: gradle:7.5.0-jdk17-alpine
      - some env variables here
      - gradle clean
      - gradle test --stacktrace

Just to mention here: It didn’t work when I omitted the “action” section.
Please check if above doc can help , let us know if you face any issue .

Please check the above link if it can help , let us know if you face any issues .