We have a github setup that should only trigger on filechanges in certain dirs or absolute files. I prefer not to exclude the rest.
It looks like this flow isn't working since it will trigger on any commit.
name: Pecl builder on: create: tags: push: paths: - .github/workflows/pecl.yml - package.xml - 'build/php7/safe/**' - LICENSE.txt - CHANGELOG-4.0.md - CODE_OF_CONDUCT.md - CODE_OWNERS.TXT
From the documentation I understood that only a action should run if one of the files in paths changed.
See full yaml here: https://github.com/phalcon/cphalcon/blob/master/.github/workflows/pecl.yml
Anybody else experience this?
I forked your repo, workflow is NOT triggered for the file change out of 'paths' list.
For instance, tests/_data/fixtures/Traits/Db/MysqlTrait.php , i notice push event is triggered on your '4.0.x' branch but however it's not in my repo.
Please confirm whether it's reproduce in your other repo. And if the issue persists, it's recommended to search private support here: https://support.github.com/contact, thanks!
If you have a look at my own fork you can see the actions triggered there as well.
Let me share my experiences with paths:
When you push to the repository, a set of changed files gets created against which paths is compared. This set includes every file from the start of the branch until the latest commit.
My misconeption was that only files in the latest push are used to match agains paths.
For your example this means, that when you change the file package.xml in a branch, this workflow will always trigger even if subsequent commits don't change any of the files in paths.
Ah thnx. That looks indeed like the case.
Wondering if this is intended to work like this. I would make sense to trigger only on certain file changes. I got a ticket running at github, let's see what they say.