1
0
This commit is contained in:
Stephan 2021-12-10 19:01:50 +01:00
parent 490cc0c703
commit 788aa0d4b5

View File

@ -20,11 +20,11 @@ jobs:
}) })
} }
catch (error) { catch (error) {
core.setFailed(`Could not find a release for tag '${tag}'.`) core.setFailed(`Could not find a release for tag ${tag}.`)
return return
} }
if (rel.draft) { if (!rel.draft) {
core.setFailed(`Release for tag '${tag}' is already published.`) core.setFailed(`Release for tag ${tag} is already published.`)
return return
} }
try { try {
@ -33,7 +33,7 @@ jobs:
repo: context.repo.repo, repo: context.repo.repo,
ref: 'tags/' + tag ref: 'tags/' + tag
}) })
core.setFailed(`Tag '${tag}' already exists.`) core.setFailed(`Tag ${tag} already exists.`)
return return
} }
catch (error) { catch (error) {