From 86dab14dfdb87738fe7ff3613222dffb6dd2f796 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 18 Mar 2022 17:50:11 +0100 Subject: [PATCH] exp --- .github/workflows/publish-release.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.js b/.github/workflows/publish-release.js index b680918..0b7d78f 100644 --- a/.github/workflows/publish-release.js +++ b/.github/workflows/publish-release.js @@ -75,11 +75,12 @@ module.exports = /*async*/ ({github, context, core}) => { // tag must not exist try { - const ref = await restapi.git.getRef({ + const refs = await restapi.git.listMatchingRefs({ owner: context.repo.owner, repo: context.repo.repo, ref: 'tags/' + tag }) + console.log(refs) core.setFailed(`Tag '${tag}' already exists.`) return }