meh
This commit is contained in:
parent
490cc0c703
commit
788aa0d4b5
8
.github/workflows/publish-release.yml
vendored
8
.github/workflows/publish-release.yml
vendored
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user