-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
[BUG] Please verify that the previous sha is valid, and increase the fetch_depth to a number higher than 40. #790
Comments
@genieai-vikas can you include the configuration for the checkout action? |
@jackton1 Thanks for the help. here is the checkout action
|
Okay, I'll recommend using - name: check if MS changed
uses: tj-actions/changed-files@v34.3.3
id: changed-files-specific-1
with:
base_sha: ${{needs.previous_commit.outputs.PREVIOUS_GITHUB_SHA}}
since_last_remote_commit: true
files: |
src/microservices/A/**
src/microservices/B/** Based on your comment
|
@jackton1 tried but still getting the same error |
@genieai-vikas Can you include the full log output with debugging enabled this can be done by rerunning the workflow |
@genieai-vikas Closing this for now as I’ll need more information to reproduce the bug. Please include more information including your workflow file and provide the related log output in order to reopen the issue. Thanks |
@jackton1 I your suggest above, can you explain the referenced "previous_commit" job? I'm getting the same depth error in some runs, but not others. |
@rainabba I'm not entirely sure how the workflow is implemented. i.e where the
E.g - name: check if MS changed
uses: tj-actions/changed-files@v34
id: changed-files-specific-1
with:
since_last_remote_commit: true
files: |
src/microservices/A/**
src/microservices/B/** |
Okay. I thought it might have been some vudu I wasn't understanding. I'm presently stuck. Many of my runs are failing like the following. I've gone from 40 all the way up to the max of 5000 and it makes no difference (as seen below.) Any advice?
|
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Hello, I was using
v17.3
and it was working now. Now I started using version34.3.3
but now my pipeline is failing.I am getting this error:
Basically, I have created a PR(develop <- feature/xxx) now every time I push github CI triggered the build because of synchronization. I compare (current - 1) to current commit of my feature branch and build only certain parts of code as per the changes
To Reproduce
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
It should compare the previous commit with the current commit and if any files are changed then it should return true or false
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: