exp
This commit is contained in:
parent
4e8f7f271f
commit
5595250e09
14
.github/workflows/publish-release.yml
vendored
14
.github/workflows/publish-release.yml
vendored
|
@ -10,12 +10,14 @@ jobs:
|
|||
with:
|
||||
script: |
|
||||
const tag = "v" + "${{ github.ref }}".substring(19)
|
||||
const rel = github.repos.getReleaseByTag({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag: tag
|
||||
})
|
||||
if (rel === null) {
|
||||
try {
|
||||
const rel = github.repos.getReleaseByTag({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag: tag
|
||||
})
|
||||
}
|
||||
catch {
|
||||
core.setFailed("Could not find a release for tag " + tag)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user