From 77f77c3e8bca3f5b43b6f55a88d619b30f6a6ae0 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 18 Mar 2022 18:37:35 +0100 Subject: [PATCH] exp --- .github/workflows/publish-release.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.js b/.github/workflows/publish-release.js index fee6024..831960a 100644 --- a/.github/workflows/publish-release.js +++ b/.github/workflows/publish-release.js @@ -48,8 +48,7 @@ module.exports = /*async*/ ({github, context, core}) => { core.setFailed(`Could not find a GitHub release for tag '${tag}'.`) return } - console.log(release) - if (release.draft) { + if (!release.draft) { core.setFailed(`GitHub release for tag '${tag}' is already published.`) return } @@ -115,7 +114,6 @@ module.exports = /*async*/ ({github, context, core}) => { owner: context.repo.owner, repo: context.repo.repo }) - console.log(releases) const release = firstOrDefault(releases.data, (x) => x.tag_name == tag) return release }