Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path ignore filter may not work as expected #124

Closed
juliusknorr opened this issue Feb 1, 2023 · 2 comments
Closed

Path ignore filter may not work as expected #124

juliusknorr opened this issue Feb 1, 2023 · 2 comments

Comments

@juliusknorr
Copy link
Member

We noticed in text that in pull requests where both javascript and php files are changed, the paths-ignore filter is not working as expected.

https://github.com/nextcloud/text/blob/main/.github/workflows/node-when-unrelated.yml#L13C7-L22

The reason is that the workflow will only be skippped if all paths match:

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths

When all the path names match patterns in paths-ignore, the workflow will not run. If any path names do not match patterns in paths-ignore, even if some path names match the patterns, the workflow will run.

This has caused the branch protection to still pass as the node-when-unrelated.ymnl check succeeded while the node.yml check was canceled due to the same name of the concurrency group.

I don't see a way to make this work with the limited github actions syntax, so maybe https://github.com/getsentry/paths-filter could be a different option.

Did anyone else encounter this as well?

cc @nickvergessen as you worked on those fallback checks.

Affected run/PR

nextcloud/text#2971
https://github.com/nextcloud/text/actions/runs/4052668917
https://github.com/nextcloud/text/actions/runs/4052668905

@nickvergessen
Copy link
Member

Ah, yeah I saw it flying by somewhere, but didn't came to the debugging phase yet.

I don't see a way to make this work with the limited github actions syntax, so maybe https://github.com/getsentry/paths-filter could be a different option.

Yeah seems like it.

@susnux
Copy link
Contributor

susnux commented Oct 21, 2023

Fixed by @nickvergessen in b7e53a6

@susnux susnux closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants