[GH workflow] update `analyze.yml` to avoid noisy notification
When I merge PR into main branch, I always received the notification that the workflow failed like this.
I found the PR workflow is different from main branch. The latter doesn't generate comment indeed but it upload it and should be used the other workflow I metion at start.
The PR workflow:

The main workflow:

https://github.com/reactjs/react.dev/blob/b9af9f57232fd6c47f90cf39eef0fc12fa8743f6/.github/workflows/analyze_comment.yml#L13
It seems not including push and we shouldn't but how we handle with this noisy notification?
If you have a fix in mind, please send it!
@gaearon The point is that do we need analyze comment on main branch?
Yea it is better to have. Because sometimes commits land directly into main rather than PR.
Yea it is better to have. Because sometimes commits land directly into main rather than PR.
We can add conditions, I think. I will look into it on the weekend.
@awxiaoxian2020 do you find this job useful when I works? I was thinking we just remove it.
@rickhanlonii please check out #7667 — there are just a few small one-line fixes
@awxiaoxian2020 do you find this job useful when I works? I was thinking we just remove it.
Yes, you can remove it.