From 08c6b3a2e3cdcdb30894d42aa3f625958cdb3d63 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 10 Dec 2021 18:38:01 +0100 Subject: [PATCH] wtf --- .github/workflows/publish-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 51ab859..e2dc60b 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -20,9 +20,11 @@ jobs: } catch (error) { core.setFailed(`Could not find a release for tag '${tag}'.`) + return } if (rel.draft) { core.setFailed(`Release for tag '${tag}' is already published.`) + return } try { const ref = await github.git.getRef({ @@ -31,6 +33,7 @@ jobs: ref: 'tags/' + tag }) core.setFailed(`Tag '${tag}' already exists.`) + return } catch (error) { // this is expected