Builds are not triggered with on.paths

Given this repostiory:

https://github.com/bukowa/workflow-test/commits/master

name: Test

on:
  push:
    paths:
    - '**/docker-compose.yml'
  pull_request:
    paths:
    - '**/docker-compose.yml'

jobs:
  django:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: test
      run: ls

Builds are not triggered with changes t o docker-compose.yml

As you can see, even here https://github.com/bukowa/workflow-test/commits/test1

name: Test

on:
  push:
    paths:
    - '**/docker-compose.yml'
    - '**/README.md'
  pull_request:
    paths:
    - '**/docker-compose.yml'
    - '**/README.md'

jobs:
  django:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: test
      run: ls

Builds are not triggered by changes to README.md

1 Like

I checked your repo, I found that docker-compose.yml and README.md both locates in the root path of your repo. You don’t need to add **/ before their name. 

Just use : 

on:
  push:
    paths:
    - 'docker-compose.yml'
- 'README.md'


https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags

Doc says it should be valid.

1 Like

Thank you for pointing this document out. I have submitted an internal ticket to github team, when they give me any response, I will update here at the first time. Sorry for any inconvenience. 

1 Like

We are working on a fix to this issue to let it behave like what is documented. Please keep an eye on github changelog

Thank you! 20 chars …