From 06bdaca2c1bbb0b599fdace8698214f82c5850d6 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 18 Mar 2022 18:30:07 +0100 Subject: [PATCH] exp --- .github/workflows/publish-release.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.js b/.github/workflows/publish-release.js index 07adc1c..6100674 100644 --- a/.github/workflows/publish-release.js +++ b/.github/workflows/publish-release.js @@ -103,6 +103,10 @@ module.exports = /*async*/ ({github, context, core}) => { async function getRelease() { // note: getReleaseByTag only returns published releases + + // note: we may eventually need to paginate + // and then releases.headers should contain what we need? + // https://octokit.github.io/rest.js/v18#pagination const version = context.payload.inputs.version const tag = `v${version}` @@ -111,7 +115,7 @@ module.exports = /*async*/ ({github, context, core}) => { repo: context.repo.repo }) console.log(releases) - const release = firstOrDefault(releases.data, (x) => x.tag == tag) + const release = firstOrDefault(releases.data, (x) => x.tag_name == tag) return release }