saitho / semantic-release-backmerge

:twisted_rightwards_arrows: semantic-release plugin to back-merge a release into a develop branch
https://saitho.github.io/semantic-release-backmerge/
56 stars 11 forks source link

fix: resolve checkout issues (#21) #22

Closed saitho closed 3 years ago

saitho commented 3 years ago

After checking out the repository by repositoryUrl the local branches may change so only the master/main branch is available. This causes subsequent checkouts to fail, since they look for local branches. This issue is resolved by adding the setting -B to it.

From git checkout documentation:

If -B is given, <new_branch> is created if it doesn’t exist; otherwise, it is reset.
saitho commented 3 years ago

:tada: This PR is included in version 1.5.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: