How to trigger the CI when Dependabot open a pull request?

This pull request does not trigger the CI. Do you know what’s wrong?

I want to avoid adding the pull_request at the trigger to avoid the CI to run twice when pushing the code and create a pull request.

Hi @diegobernardes
You could add pull_request event and specify it’s Activity types. In your scenario, you could remove opened , synchronize Activity types in order to avoid the CI to run twice when push the code and create a pull request. You could keep other Activity types listed here according to your needs.
For example :

on:
  push:
    branches:
      - '*'
      - '!master'
  pull_request:
    types: [assigned, reopened]

jobs:
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

Thanks! That works. But I actually found a way simpler solution, the problem was with the branch filter pattern. Instead of using * I had to use ** and that solved the problem.