-
-
Notifications
You must be signed in to change notification settings - Fork 412
Remove ignored paths #1623
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
Remove ignored paths #1623
Conversation
.github/workflows/bench.yml
Outdated
| bench-example: | ||
| needs: pre_job | ||
| if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
| needs: [bench-init] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to have two needs keys? I thought yaml is just more elaborated json...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case that bench-init is skipped, is bench-example still reachable if we don't add this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will skip its computation but from the GitHub's point of view I think the jot itself is not skipped, and will execute following jobs...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if the action lets you duplicate keys it is better to have only one, will change
EDIT: And it is not valid:
.github/workflows/bench.yml#L95
The workflow is not valid. .github/workflows/bench.yml (Line: 95, Col: 5): 'needs' is already defined
jneira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicate needs
Ailrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
paths-ignoredoesnt work with required checks branch protection rules: https://github.community/t/path-filtering-on-required-pull-request-checks/18402/3skip-duplicate-actionswhich was being already used can be used to get the same functionality: https://github.com/marketplace/actions/skip-duplicate-actions#option-1-skip-entire-jobs