Dbl
Dbl

Reputation: 5893

How to fix my github workflow action so it works on pull requests again?

My workflow file looks like this:

on:

  push:
    branches:
      - master 
    paths: 
      - "src/*"
      
  pull_request:
    branches: 
      - master
    paths: 
      - "src/*"

At some point i added the paths: "src/*" and it simply won't trigger (anymore)?

I tried different things such as the filter on branches/paths, but it's like github actions cannot do PR merge checks? I've set them up with other CI platforms just fine, but i can't get it working with github actions. I have read in some article that PR checks will not work if there is a merge conflict, but that is not the case here either

Upvotes: 1

Views: 577

Answers (1)

GuiFalourd
GuiFalourd

Reputation: 22890

It might be because your PR is still opened.

As your workflow is implemented:

  • The PR event is only triggered on the initial PR.
  • The workflow is not triggered on subsequent pushes events to the branch that has PR (and is not master).

Upvotes: 2

Related Questions