fix(ci): remove refs/heads/ from branch

This commit is contained in:
Nightapes
2019-08-21 21:50:40 +02:00
parent 89f4842a2b
commit 4c7cfd5e90
3 changed files with 11 additions and 4 deletions

View File

@@ -179,12 +179,12 @@ func (s *SemanticRelease) WriteChangeLog(changelogContent, file string) error {
func (s *SemanticRelease) Release(provider *ci.ProviderConfig, force bool) error {
if provider.IsPR {
log.Debugf("Will not perform a new release. This is a pull request")
log.Infof("Will not perform a new release. This is a pull request")
return nil
}
if _, ok := s.config.Branch[provider.Branch]; !ok {
log.Debugf("Will not perform a new release. Current %s branch is not configured in release config", provider.Branch)
log.Infof("Will not perform a new release. Current %s branch is not configured in release config", provider.Branch)
return nil
}