-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Unable to locate a common ancestor between production_migration and HEAD #802
Comments
Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience. |
Hi @vinothgitkumar, can you include the configuration for the checkout action, since the merge-base shouldn't be checked when using See: https://github.com/tj-actions/changed-files/blob/main/diff-sha.sh#L186 Example: https://github.com/tj-actions/demo3/actions/runs/3463263129/jobs/5783253769#step:3:49 |
I'm also running into this issue, here's a snippet of the workflow: - uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- id: files
uses: tj-actions/[email protected]
with:
separator: ","
base_sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ github.event.pull_request.head.sha }} I think this seems to happen when the pull request is not up to date with the "default/target" branch |
Hi, @jarojasm95 have you tried upgrading? I believe the change was introduced in v34.4.0 |
I get a similar issue using v34 (which is v34.4.0 right now). |
Hi @stof I am facing the same issue and opened a similar case. |
Hi What change do I need to do in the action "tj-actions/changed-files" to avoid this error? |
Hi,
Didn't face the issue with 34.1.1. |
High-level description: This bug occurs when the fork point and the last commit of the base branch differ, resulting in errors finding the merge-base as the checkout action merges the tip of the target branch to the PR branch. To prevent this error going forward a pre-check to determine the validity of merge-base would be used falling back to the last commit of the target branch where necessary. |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
My github workflow triggered using PR creation event. Once the workflow triggered the action throws below error and workflow failed.
Error: Unable to locate a common ancestor between production_migration and HEAD
Error: Process completed with exit code 1.
I am using checkout action v3 with depth 0 and tj-actions/changed-files@v34
To Reproduce
I Encouter this issue now only and not able to reproduce but it may occur sometime later.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
tj-actions/changed-files@v34 action needs to complete the execution and provide the putout as files in PR.
Relevant log output
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: