wtf
This commit is contained in:
parent
fe62eb455c
commit
08c6b3a2e3
3
.github/workflows/publish-release.yml
vendored
3
.github/workflows/publish-release.yml
vendored
|
@ -20,9 +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
|
||||||
}
|
}
|
||||||
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
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const ref = await github.git.getRef({
|
const ref = await github.git.getRef({
|
||||||
|
@ -31,6 +33,7 @@ jobs:
|
||||||
ref: 'tags/' + tag
|
ref: 'tags/' + tag
|
||||||
})
|
})
|
||||||
core.setFailed(`Tag '${tag}' already exists.`)
|
core.setFailed(`Tag '${tag}' already exists.`)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
// this is expected
|
// this is expected
|
||||||
|
|
Loading…
Reference in New Issue
Block a user