-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
[remote rejected] test -> test (shallow update not allowed) #102
Comments
An error like In your example you checkout the - name: 'Checkout source code'
uses: actions/checkout@v2
with:
ref: 'test'
+ fetch-depth: 0
token: ${{ secrets.ACTIONS_ACESS_TOKEN }} Using a custom token ( |
Thanks for the quick feedback! I'll give it a try and let you know if it worked. |
Didn't work, same error still happened this morning 😢 |
Hm. I really have no idea how to fix this as I still think this is related to the checkout process and not to Do the logs for "Checkout source code" step have anything in them that seems to indicate that something failed? Does it mention "shallow" or "detached"? As I assume this is a private repo, do you have anything setup differently in the repo settings that could impact how the repo could be cloned Searching the internet I found the git fetch --unshallow |
I finally figured out the issue, it turns out that in rare cases the workflows were overlapping in time (one starting while one ending) I increased the gap between the cron jobs and the issue has since been resolved, thanks a lot for trying to help! :) |
@rimonhanna That actually went through my head once too, but I thought that couldn't be possible on Action. |
Version of the Action
`v4.x.x
Describe the bug
Only once in a while from a workflow triggered by a cron job I get this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Action should commit the files successfully
Screenshots
NA
Used Workflow
yaml
The text was updated successfully, but these errors were encountered: