-
Notifications
You must be signed in to change notification settings - Fork 262
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
What is the difference of using the on.pull_request.paths
github action syntax?
#107
Comments
so, I can answer for this question The difference is that the workflow will not be executed at all for I cannot use but if I use name: PR Lint
on:
pull_request:
jobs:
check-changes:
runs-on: ubuntu-latest
outputs:
go: ${{ steps.changes.outputs.go }}
steps:
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
go:
- '**.go'
lint:
runs-on: ubuntu-latest
needs: check-changes
if: ${{ needs. check-changes.outputs.go == 'true' }}
steps:
..... |
@SVilgelm we also have required jobs but when we skip them using your action they still block the PR from being merged. Has something changed in the way GitHub works? |
Sorry, this is not my action. I just was lucky to known the answer. I'm not sure I can help you, didn't touch the actions for a year or so. But I can try, could you please share your config? |
I found out the problem in my case is that I'm using matrix and that doesn't work because it ends up skipping the wrong thing |
According to github actions documentation:
https://docs.github.com/es/actions/learn-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths
on.<push|pull_request>.paths
Is this github action providing some extra functionality or different behaviour?
The text was updated successfully, but these errors were encountered: