Skip to content

cpp-linter workflows runs for every change #205

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

Closed
shenxianpeng opened this issue Mar 7, 2024 · 9 comments
Closed

cpp-linter workflows runs for every change #205

shenxianpeng opened this issue Mar 7, 2024 · 9 comments

Comments

@shenxianpeng
Copy link
Collaborator

I guess your change here was to disable all cpp-linter runs only run when there is a change under docs/examples/demo/

but right now, it seems cpp-linter runs and adds comments for everything. see 7ce9dc2#comments

@2bndy5
Copy link
Collaborator

2bndy5 commented Mar 7, 2024

yes, that was the idea. But it didn't seem to work as expected. Maybe if we just remove that line, it would only run when there are changes to the demo sources.

github docs for on.<event>.path

Currently we are only using that workflow to show an example badge in the README. We don't often modify the demo sources. So, how useful it is to even have both the CI workflow and the demo sources in this repo?

@shenxianpeng
Copy link
Collaborator Author

yes, that was the idea. But it didn't seem to work as expected. Maybe if we just remove that line, it would only run when there are changes to the demo sources.

I think just remove it should be work.

@2bndy5
Copy link
Collaborator

2bndy5 commented Mar 7, 2024

We should also disable thread-comments for that workflow. That way we are less bothered by the posted comment.

@shenxianpeng
Copy link
Collaborator Author

Currently we are only using that workflow to show an example badge in the README. We don't often modify the demo sources. So, how useful it is to even have both the CI workflow and the demo sources in this repo?

Right. leave it there could as user's actual example and an example badge

@2bndy5 2bndy5 closed this as completed in 36abdef Mar 7, 2024
@2bndy5 2bndy5 reopened this Mar 7, 2024
@2bndy5
Copy link
Collaborator

2bndy5 commented Mar 7, 2024

It might be getting triggered from master branch not main branch.

@2bndy5
Copy link
Collaborator

2bndy5 commented Mar 7, 2024

Oh, I see. Actually, the comment comes from the test CI workflow which calls the test repo's reusable workflow.

So, maybe we don't run the test CI on push events?

@shenxianpeng
Copy link
Collaborator Author

So, maybe we don't run the test CI on push events?

That should be fine.

@2bndy5 2bndy5 closed this as completed in 57cc38b Mar 7, 2024
@2bndy5
Copy link
Collaborator

2bndy5 commented Mar 7, 2024

yep. that fixed it 🎉

@2bndy5
Copy link
Collaborator

2bndy5 commented Mar 7, 2024

That change in 57cc38b might also fix the problem where the latest tag was pointing to the PR's base branch tip (instead of the PR's head branch tip).

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

2 participants