diff --git a/.github/workflows/publish-release.js b/.github/workflows/publish-release.js index c7e2189..a11a182 100644 --- a/.github/workflows/publish-release.js +++ b/.github/workflows/publish-release.js @@ -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 }