-
Notifications
You must be signed in to change notification settings - Fork 383
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
Error auto-tag when merging a branch into another branch - unknown revision or path not in the working tree. #299
Comments
By doing a full checkout, I also managed to eliminate this error.
|
According to checkout documentation.
Not sure what a full checkout is in your case. But glad you found a fix to your case problem. |
After mucking about with this more today, it appears that fetch-depth thing did not 'fix' the issue, I'm still hitting it. |
Ok, so I think I found another workaround that actually appears to work. It may drive a README/documentation update. When I call actions/checkout@v4, if a SHA is supplied (default uses $ GITHUB _ SHA I believe, or if you specify with: ref: ${{ github.event.pull_request.merge_commit_sha }} as per readme) then I get this failure.
Note that the plugin still runs successfully, even if it hits that |
I was able to reproduce the issue successfully 😅 I was using a fresh repo so the tag "0.0.0" indeed didn't exist.
The solution is likely to skip semver calculations altogether if a custom tag argument is provided, but this likely won't solve the initial issue. Full workflow to reproduce:
|
When merging a developer feature branch into a release branch (off master), this plugin throws an error.
In the section looking for merge commits, get the following error:
I have a lot of commits, many with tags.
Go back to a commit/tag referencing our last release (lets say tag v2.2)
Create a release branch off this
Create a dev branch off this release branch
Add updates/commits to this dev branch and merge into the release branch (the auto-tag runs to create a new tag on the release branch)
This is where we hit the above error
To reproduce or setup the situation, assume a repository with a number of commits. Not at the top we have a tag referencing a past release (v2.2), but dont yet have a branch for it - the commit is on master.
To manually reproduce the error, I can now clone the repository, checkout dev/2.2patch branch (release/2.2patch is not in the workspace.) I can reproduce the error manually...
However if I prefix with 'origin' in the git log call, this now works:
The text was updated successfully, but these errors were encountered: