From 9e847c6af9b97e2094e0968b8a7fd675592b904e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Aug 2019 19:39:48 +0200 Subject: [PATCH 01/11] build(ci): add github action --- .github/workflows/go.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..ba33599 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,37 @@ +name: Go +on: [push, pull_request] +jobs: + + test: + name: Test + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + go-version: 1.12 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Lint + run: | + curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 + golangci-lint run ./... + + - name: Run tests + run: go test -v ./... + + - name: Build binary without version + run: go build -o build/go-semantic-release-temp ./cmd/go-semantic-release/ + + build: + name: Build on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + run: | + go build -o build/go-semantic-release -ldflags "-w -s --X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ From a068e653699c645e25a33c8aeee5275512c83b9c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Aug 2019 19:41:51 +0200 Subject: [PATCH 02/11] build(ci): fix file --- .github/workflows/go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ba33599..bf91f04 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -33,5 +33,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] + steps: + - name: Build binary run: | go build -o build/go-semantic-release -ldflags "-w -s --X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ From 6a53c3e5870ff79d604a661f16af4c1ca5607437 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Aug 2019 19:46:23 +0200 Subject: [PATCH 03/11] build(ci): build needs test --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bf91f04..0b123ff 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,6 +29,7 @@ jobs: build: name: Build on ${{ matrix.os }} + needs: Test runs-on: ${{ matrix.os }} strategy: matrix: From 17f1890ca146edba52af7d8b46ed9703cbd0f2e1 Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 20:03:35 +0200 Subject: [PATCH 04/11] build(ci): update github action --- .github/workflows/{go.yml => main.yml} | 31 +++++++++++++++++++------- 1 file changed, 23 insertions(+), 8 deletions(-) rename .github/workflows/{go.yml => main.yml} (68%) diff --git a/.github/workflows/go.yml b/.github/workflows/main.yml similarity index 68% rename from .github/workflows/go.yml rename to .github/workflows/main.yml index 0b123ff..5b6a812 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,26 @@ name: Go -on: [push, pull_request] jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + go-version: 1.12 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Lint + run: | + export PATH=$PATH:$(go env GOPATH)/bin + curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 + golangci-lint run ./... + test: name: Test runs-on: ubuntu-latest @@ -16,20 +35,15 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 - - name: Lint - run: | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 - golangci-lint run ./... - - name: Run tests run: go test -v ./... - name: Build binary without version - run: go build -o build/go-semantic-release-temp ./cmd/go-semantic-release/ + run: build: name: Build on ${{ matrix.os }} - needs: Test + needs: [Test, Lint] runs-on: ${{ matrix.os }} strategy: matrix: @@ -37,4 +51,5 @@ jobs: steps: - name: Build binary run: | + go build -o build/go-semantic-release-temp ./cmd/go-semantic-release/ go build -o build/go-semantic-release -ldflags "-w -s --X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ From be1e483baabc1f1098a9727a0d66016867a6ffd3 Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 20:06:30 +0200 Subject: [PATCH 05/11] build(ci): fix action file --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b6a812..85ecaab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,5 @@ name: Go +on: [push, pull_request] jobs: lint: From f1bb5470c02f6e0399738900fb06e1513c1de147 Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 20:39:58 +0200 Subject: [PATCH 06/11] test(internal): fix broken test after golang update --- internal/releaser/util/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/releaser/util/util_test.go b/internal/releaser/util/util_test.go index 52822ea..f3ceadc 100644 --- a/internal/releaser/util/util_test.go +++ b/internal/releaser/util/util_test.go @@ -193,7 +193,7 @@ func TestDoAndRoundTrip(t *testing.T) { hasError: true, responseBody: &example{}, responseBodyType: &example{}, - path: "broken", + path: "4/broken", }, } From 2f2f7e51fb9b7cd366c297431a539c0a639bc0ce Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 20:52:53 +0200 Subject: [PATCH 07/11] build(ci): remove matrix, cache is missing --- .github/workflows/main.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85ecaab..a3122f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,12 +45,22 @@ jobs: build: name: Build on ${{ matrix.os }} needs: [Test, Lint] - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + runs-on: ubuntu-latest steps: + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + go-version: 1.12 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + - name: Build binary run: | go build -o build/go-semantic-release-temp ./cmd/go-semantic-release/ go build -o build/go-semantic-release -ldflags "-w -s --X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ + GOOS=windows GOARCH=386 go build -o build/go-semantic-release.exe -ldflags "-w -s -X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ + + - name: Release + run: ./build/go-semantic-release-temp release --loglevel trace From 115964c9c19eec1a1b97299ab88a50b2f0aa9f14 Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 21:06:57 +0200 Subject: [PATCH 08/11] fix(github): use env GITHUB_TOKEN for releaser --- .github/workflows/main.yml | 2 ++ internal/releaser/github/github.go | 2 +- internal/releaser/github/github_test.go | 20 ++++++++++---------- internal/releaser/releaser.go | 3 ++- internal/releaser/util/util.go | 4 +--- internal/releaser/util/util_test.go | 2 +- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3122f9..65f2e16 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,4 +63,6 @@ jobs: GOOS=windows GOARCH=386 go build -o build/go-semantic-release.exe -ldflags "-w -s -X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: ./build/go-semantic-release-temp release --loglevel trace diff --git a/internal/releaser/github/github.go b/internal/releaser/github/github.go index a7c631e..4381e4d 100644 --- a/internal/releaser/github/github.go +++ b/internal/releaser/github/github.go @@ -32,7 +32,7 @@ type Client struct { func New(c *config.GitHubProvider) (*Client, error) { var err error - if c.AccessToken, err = util.GetAccessToken(GITHUB); err != nil { + if c.AccessToken, err = util.GetAccessToken("GITHUB_TOKEN"); err != nil { return &Client{}, err } ctx := context.Background() diff --git a/internal/releaser/github/github_test.go b/internal/releaser/github/github_test.go index d9ab789..464b2c4 100644 --- a/internal/releaser/github/github_test.go +++ b/internal/releaser/github/github_test.go @@ -145,19 +145,19 @@ func initHTTPServer(respCode int, body string) *httptest.Server { func TestNew(t *testing.T) { for _, testOject := range testNewClient { if testOject.valid { - os.Setenv("GITHUB_ACCESS_TOKEN", "XXX") + os.Setenv("GITHUB_TOKEN", "XXX") } _, err := github.New(&testOject.config) assert.Equal(t, testOject.valid, err == nil) - os.Unsetenv("GITHUB_ACCESS_TOKEN") + os.Unsetenv("GITHUB_TOKEN") } } func TestGetCommitURL(t *testing.T) { - os.Setenv("GITHUB_ACCESS_TOKEN", "XX") + os.Setenv("GITHUB_TOKEN", "XX") for _, testOject := range testNewClient { client, _ := github.New(&testOject.config) actualURL := client.GetCommitURL() @@ -170,12 +170,12 @@ func TestGetCommitURL(t *testing.T) { assert.EqualValues(t, expectedURL, actualURL) } } - os.Unsetenv("GITHUB_ACCESS_TOKEN") + os.Unsetenv("GITHUB_TOKEN") } func TestGetCompareURL(t *testing.T) { - os.Setenv("GITHUB_ACCESS_TOKEN", "XX") + os.Setenv("GITHUB_TOKEN", "XX") for _, testOject := range testNewClient { client, _ := github.New(&testOject.config) actualURL := client.GetCompareURL("1", "2") @@ -188,12 +188,12 @@ func TestGetCompareURL(t *testing.T) { assert.EqualValues(t, expectedURL, actualURL) } } - os.Unsetenv("GITHUB_ACCESS_TOKEN") + os.Unsetenv("GITHUB_TOKEN") } func TestValidateConfig(t *testing.T) { - os.Setenv("GITHUB_ACCESS_TOKEN", "XX") + os.Setenv("GITHUB_TOKEN", "XX") for _, testOject := range testHelperMethod { client, _ := github.New(&testOject.config) err := client.ValidateConfig() @@ -201,11 +201,11 @@ func TestValidateConfig(t *testing.T) { assert.Equal(t, testOject.valid, err == nil) } - os.Unsetenv("GITHUB_ACCESS_TOKEN") + os.Unsetenv("GITHUB_TOKEN") } func TestCreateRelease(t *testing.T) { - os.Setenv("GITHUB_ACCESS_TOKEN", "XX") + os.Setenv("GITHUB_TOKEN", "XX") for _, testObejct := range testReleases { if testObejct.valid { @@ -232,6 +232,6 @@ func TestCreateRelease(t *testing.T) { assert.Error(t, err) } } - os.Unsetenv("GITHUB_ACCESS_TOKEN") + os.Unsetenv("GITHUB_TOKEN") } diff --git a/internal/releaser/releaser.go b/internal/releaser/releaser.go index d96f49f..0aa21f3 100644 --- a/internal/releaser/releaser.go +++ b/internal/releaser/releaser.go @@ -2,6 +2,7 @@ package releaser import ( "fmt" + "strings" "github.com/Nightapes/go-semantic-release/internal/releaser/github" "github.com/Nightapes/go-semantic-release/internal/releaser/gitlab" @@ -41,7 +42,7 @@ func (r *Releasers) GetReleaser() (Releaser, error) { return github.New(&r.config.GitHubProvider) case gitlab.GITLAB: log.Debugf("initialize new %s-provider", gitlab.GITLAB) - accessToken, err := util.GetAccessToken(gitlab.GITLAB) + accessToken, err := util.GetAccessToken(fmt.Sprintf("%s_ACCESS_TOKEN", strings.ToUpper(gitlab.GITLAB))) if err != nil { return nil, err } diff --git a/internal/releaser/util/util.go b/internal/releaser/util/util.go index 5bde7e3..5e4b42b 100644 --- a/internal/releaser/util/util.go +++ b/internal/releaser/util/util.go @@ -49,11 +49,9 @@ func NewAddHeaderTransport(T http.RoundTripper, key, value string) *AddHeaderTra } // GetAccessToken lookup for the providers accesstoken -func GetAccessToken(providerName string) (string, error) { +func GetAccessToken(envName string) (string, error) { var token string var exists bool - envName := fmt.Sprintf("%s_ACCESS_TOKEN", strings.ToUpper(providerName)) - log.Debugf("check if %s environment variable is set", envName) if token, exists = os.LookupEnv(envName); !exists { diff --git a/internal/releaser/util/util_test.go b/internal/releaser/util/util_test.go index f3ceadc..3fc3eee 100644 --- a/internal/releaser/util/util_test.go +++ b/internal/releaser/util/util_test.go @@ -43,7 +43,7 @@ func TestGetAccessToken(t *testing.T) { fmt.Println(err.Error()) } - _, err := util.GetAccessToken(testObject.providerName) + _, err := util.GetAccessToken(envName) assert.Equal(t, testObject.valid, err == nil) os.Unsetenv(envName) From 7857b5f6f3688afee788b3465745776974f9c39f Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 21:23:07 +0200 Subject: [PATCH 09/11] build(actions): add debug print --- .github/workflows/main.yml | 40 +++++++------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 65f2e16..ab907b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,11 +2,16 @@ name: Go on: [push, pull_request] jobs: - lint: - name: Lint + build: + name: Build runs-on: ubuntu-latest steps: + - name: tmp + run: | + echo $GITHUB_EVENT_NAME + cat $GITHUB_EVENT_PATH + - name: Set up Go 1.12 uses: actions/setup-go@v1 with: @@ -22,40 +27,9 @@ jobs: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 golangci-lint run ./... - test: - name: Test - runs-on: ubuntu-latest - steps: - - - name: Set up Go 1.12 - uses: actions/setup-go@v1 - with: - go-version: 1.12 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - name: Run tests run: go test -v ./... - - name: Build binary without version - run: - - build: - name: Build on ${{ matrix.os }} - needs: [Test, Lint] - runs-on: ubuntu-latest - steps: - - name: Set up Go 1.12 - uses: actions/setup-go@v1 - with: - go-version: 1.12 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - name: Build binary run: | go build -o build/go-semantic-release-temp ./cmd/go-semantic-release/ From 89f4842a2be50daed865ff4c2eb67ddd91c03f34 Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 21:39:05 +0200 Subject: [PATCH 10/11] fear(ci): add github actions --- .github/workflows/main.yml | 4 +++- internal/ci/ci.go | 1 + internal/ci/ci_test.go | 22 +++++++++++++++++++++ internal/ci/github_actions.go | 36 +++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 internal/ci/github_actions.go diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab907b0..61a02b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,9 +28,11 @@ jobs: golangci-lint run ./... - name: Run tests - run: go test -v ./... + run: go test ./... - name: Build binary + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | go build -o build/go-semantic-release-temp ./cmd/go-semantic-release/ go build -o build/go-semantic-release -ldflags "-w -s --X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/ diff --git a/internal/ci/ci.go b/internal/ci/ci.go index 4f1acd6..066271c 100644 --- a/internal/ci/ci.go +++ b/internal/ci/ci.go @@ -42,6 +42,7 @@ func GetCIProvider(gitUtil *gitutil.GitUtil, envs map[string]string) (*ProviderC services := []Service{ Travis{}, + GithubActions{}, Git{gitUtil: gitUtil}, // GIt must be the last option to check } diff --git a/internal/ci/ci_test.go b/internal/ci/ci_test.go index 38a24a1..e6cd8bb 100644 --- a/internal/ci/ci_test.go +++ b/internal/ci/ci_test.go @@ -89,6 +89,28 @@ func TestCi(t *testing.T) { result: &ci.ProviderConfig{IsPR: false, PR: "", PRBranch: "", Branch: "master", Tag: "TAG", Commit: "190bfd6aa60022afd0ef830342cfb07e33c45f37", BuildURL: "https://travis-ci.com/owner/repo/builds/1234", Service: "travis", Name: "Travis CI"}, hasError: false, }, + { + service: "Github Actions PR", + envs: map[string]string{ + "GITHUB_EVENT_NAME": "pull_request", + "GITHUB_SHA": "190bfd6aa60022afd0ef830342cfb07e33c45f37", + "GITHUB_REF": "master", + "GITHUB_ACTION": "action", + }, + result: &ci.ProviderConfig{IsPR: true, PR: "", PRBranch: "", Branch: "master", Tag: "", Commit: "190bfd6aa60022afd0ef830342cfb07e33c45f37", BuildURL: "", Service: "GithubActions", Name: "GithubActions CI"}, + hasError: false, + }, + { + service: "Github Actions Push", + envs: map[string]string{ + "GITHUB_EVENT_NAME": "push", + "GITHUB_SHA": "190bfd6aa60022afd0ef830342cfb07e33c45f37", + "GITHUB_REF": "refs/heads/feature-branch-1", + "GITHUB_ACTION": "action", + }, + result: &ci.ProviderConfig{IsPR: false, PR: "", PRBranch: "", Branch: "refs/heads/feature-branch-1", Tag: "", Commit: "190bfd6aa60022afd0ef830342cfb07e33c45f37", BuildURL: "", Service: "GithubActions", Name: "GithubActions CI"}, + hasError: false, + }, } for _, config := range testConfigs { diff --git a/internal/ci/github_actions.go b/internal/ci/github_actions.go new file mode 100644 index 0000000..02b06ed --- /dev/null +++ b/internal/ci/github_actions.go @@ -0,0 +1,36 @@ +package ci + +import ( + "fmt" + + log "github.com/sirupsen/logrus" +) + +//GithubActions struct +type GithubActions struct{} + +//Detect if on GithubActions +func (t GithubActions) detect(envs map[string]string) (*ProviderConfig, error) { + + if _, exists := envs["GITHUB_ACTION"]; !exists { + return nil, fmt.Errorf("not running on Github Actions") + } + + isPR := false + + value := envs["GITHUB_EVENT_NAME"] + + if value == "pull_request" { + isPR = true + } else { + log.Debugf("GITHUB_EVENT_NAME=%s, not running on pr", value) + } + + return &ProviderConfig{ + Service: "GithubActions", + Name: "GithubActions CI", + Commit: envs["GITHUB_SHA"], + Branch: envs["GITHUB_REF"], + IsPR: isPR, + }, nil +} From 4c7cfd5e9042b1384f9715143692cb9fcf74252f Mon Sep 17 00:00:00 2001 From: Nightapes Date: Wed, 21 Aug 2019 21:50:40 +0200 Subject: [PATCH 11/11] fix(ci): remove refs/heads/ from branch --- internal/ci/ci_test.go | 2 +- internal/ci/github_actions.go | 9 ++++++++- pkg/semanticrelease/semantic-release.go | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/internal/ci/ci_test.go b/internal/ci/ci_test.go index e6cd8bb..31ecd0c 100644 --- a/internal/ci/ci_test.go +++ b/internal/ci/ci_test.go @@ -108,7 +108,7 @@ func TestCi(t *testing.T) { "GITHUB_REF": "refs/heads/feature-branch-1", "GITHUB_ACTION": "action", }, - result: &ci.ProviderConfig{IsPR: false, PR: "", PRBranch: "", Branch: "refs/heads/feature-branch-1", Tag: "", Commit: "190bfd6aa60022afd0ef830342cfb07e33c45f37", BuildURL: "", Service: "GithubActions", Name: "GithubActions CI"}, + result: &ci.ProviderConfig{IsPR: false, PR: "", PRBranch: "", Branch: "feature-branch-1", Tag: "", Commit: "190bfd6aa60022afd0ef830342cfb07e33c45f37", BuildURL: "", Service: "GithubActions", Name: "GithubActions CI"}, hasError: false, }, } diff --git a/internal/ci/github_actions.go b/internal/ci/github_actions.go index 02b06ed..38b1aa4 100644 --- a/internal/ci/github_actions.go +++ b/internal/ci/github_actions.go @@ -2,6 +2,7 @@ package ci import ( "fmt" + "strings" log "github.com/sirupsen/logrus" ) @@ -26,11 +27,17 @@ func (t GithubActions) detect(envs map[string]string) (*ProviderConfig, error) { log.Debugf("GITHUB_EVENT_NAME=%s, not running on pr", value) } + branch := envs["GITHUB_REF"] + + if strings.HasPrefix(envs["GITHUB_REF"], "refs/heads/") { + branch = strings.Replace(branch, "refs/heads/", "", 1) + } + return &ProviderConfig{ Service: "GithubActions", Name: "GithubActions CI", Commit: envs["GITHUB_SHA"], - Branch: envs["GITHUB_REF"], + Branch: branch, IsPR: isPR, }, nil } diff --git a/pkg/semanticrelease/semantic-release.go b/pkg/semanticrelease/semantic-release.go index 69e0ae3..41ed971 100644 --- a/pkg/semanticrelease/semantic-release.go +++ b/pkg/semanticrelease/semantic-release.go @@ -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 }