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

@@ -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,
},
}