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
chore(ci-wait-for-all): Use Ana06/get-changed-files
to compare PRs with main
#3158
Conversation
55ec13e
to
56e7018
Compare
Actually I think the issue is that this action uses a two dots diff instead of a three dots diff, see https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-comparing-branches-in-pull-requests#three-dot-and-two-dot-git-diff-comparisons |
a5c7b1f
to
062305a
Compare
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v32 | ||
uses: jitterbit/get-changed-files@v1 |
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.
This action uses the GitHub API to do the diff, which should use a three dots diff.
We've used it before and removed it since it caused us to hit rate limits.
Since we're now on enterprise account our limit increased from 1000 to 15000 request per hour so I think we can try this again until tj-actions/changed-files#702 is resolved.
Another benefit is that we can do a shallow clone which is faster
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.
OK so jitterbit/get-changed-files#19 (comment) works
changed-files
actionAna06/get-changed-files
to compare PRs with main
@hermanschaaf sorry for the back and forth this is ready now |
Summary
It seems this action fails to use the correctsha
of the PR if the PR branch is not up to date. This should fix itUse an action that uses the GitHub API as we need a three dots diff