-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
fatal: not a valid object name: '4.0.x' #241
Comments
I've seen this a number of times now: I think the action is not fetching all branches 🤔 |
I modified the action to make sure all branches are fetched. Unfortunately, the result is the same. |
This does not make much sense. It tries to create new default branch from latest release branch not taking into account release major version. |
I looked closely at this issue. I am pretty sure I know what is going on here. Checkout action by default does depth 1 shallow checkout. Doing https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---update-shallow
Since release normally happens from latest release branch it ends up available in happy path condition. It is for the good actually. If not for this bug the more sinister bug would have been uncovered: next minor branch for current major would have been created from the next major branch. Fix here is two-fold:
|
Bug Report
Summary
Job is failing: https://github.com/web-token/jwt-framework/actions/runs/5016108869/jobs/8992552443
Previous executions were fine: https://github.com/web-token/jwt-framework/actions/runs/4392789931/jobs/7692769201
No changes in the Github Action file.
I cannot find what is missing.
Current behavior
Github Action fails with the following error code and detail.
How to reproduce
The error is issued during normal Github Action call.
Expected behavior
The branch '4.0.x' already exists. It is expected for the action to correctly find it and continue its execution.
The text was updated successfully, but these errors were encountered: