You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: go releases failing on non-default branches (#178)
When trying to release to a non-default branch, Go releases fail because during checkout, jsii-release tries to run `git checkout -B <branch>` (so that it creates the branch if it doesn't exist). The problem is that if the branch does exist in the remote but it is not the default, git creates the branch at origin/HEAD instead of at origin/<branch>.
To fix this we check if the branch exists in the remote, and if so just run "git checkout" without -b (which will automatically track the correct branch).
Example failure run: https://github.com/cdk8s-team/cdk8s-plus/runs/3657009630?check_suite_focus=true#step:4:40
0 commit comments