This commit is contained in:
Stephan 2022-03-18 18:03:53 +01:00
parent 95d31440db
commit 93e9740904

View File

@ -24,8 +24,7 @@ module.exports = /*async*/ ({github, context, core}) => {
repo: context.repo.repo,
ref: `heads/release/${version}`
})
console.log(branchRefs)
if (firstOrDefault(branchRefs.data, (x) => x.ref == `heads/release/${version}`) == null) {
if (firstOrDefault(branchRefs.data, (x) => x.ref == `refs/heads/release/${version}`) == null) {
core.setFailed(`Could not find branch 'release/${version}'.`)
return
}